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
This commit is contained in:
Sam Atkins 2024-05-01 14:25:31 +01:00
parent 280479c0c6
commit 8d4a1e0ed3

View File

@ -21,6 +21,7 @@
*/ */
export class PTT { export class PTT {
constructor(pty) { constructor(pty) {
const encoder = new TextEncoder();
this.readableStream = new ReadableStream({ this.readableStream = new ReadableStream({
start: controller => { start: controller => {
this.readController = controller; this.readController = controller;