From 8d4a1e0ed3872e2c82b9e4be9b6d8b359e9cea09 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 1 May 2024 14:25:31 +0100 Subject: [PATCH] fix: Add missing TextEncoder to PTT Solves this eslint issue: /puter/packages/terminal/src/pty/PTT.js 35:29 error 'encoder' is not defined no-undef --- packages/terminal/src/pty/PTT.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/terminal/src/pty/PTT.js b/packages/terminal/src/pty/PTT.js index ff122b8f..c39d0839 100644 --- a/packages/terminal/src/pty/PTT.js +++ b/packages/terminal/src/pty/PTT.js @@ -21,6 +21,7 @@ */ export class PTT { constructor(pty) { + const encoder = new TextEncoder(); this.readableStream = new ReadableStream({ start: controller => { this.readController = controller;