diff --git a/build.sh b/build.sh index d8b0f0d..d0aad25 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,5 @@ #!/bin/bash -e -npm install -g npm - npm install -Dy npm -y exec webpack cp ./node_modules/xterm/css/xterm.css ./assets/ diff --git a/src/index.ts b/src/index.ts index f93f518..e69c32b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,8 +2,6 @@ import {Terminal} from 'xterm'; import { Readline } from "xterm-readline"; import { FitAddon } from 'xterm-addon-fit'; -let isScreened = false, sendLessExplicit = false; - const term = new Terminal(); const rl = new Readline(); term.options.scrollback = 1000; @@ -35,8 +33,6 @@ function connectTerm() { "wss://ws.blastmud.org/wsgame" : params.wsurl; let webSocket = new WebSocket(wsurl); webSocket.addEventListener('open', (event) => { - if (sendLessExplicit) - webSocket.send("less_explicit_mode"); fit.fit(); lineHandler = (l: string) => { console.log("Send handler", l); webSocket.send(l); } term.writeln("\x1b[0mConnected"); @@ -56,6 +52,3 @@ function connectTerm() { } if ('serviceWorker' in navigator) navigator.serviceWorker.register('service-worker.js'); -if (params["source"] && params["source"] === "android") { - sendLessExplicit = true; -}