diff --git a/package-lock.json b/package-lock.json index 1c56b60..7df1e15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,7 @@ "requires": true, "packages": { "": { + "name": "blastmud-site", "dependencies": { "xterm": "^5.1.0", "xterm-addon-fit": "^0.7.0", @@ -12,6 +13,7 @@ "devDependencies": { "@webpack-cli/generators": "^3.0.1", "ts-loader": "^9.4.2", + "webpack-cli": "^5.0.1", "workbox-webpack-plugin": "^6.5.4" } }, @@ -4480,9 +4482,9 @@ } }, "node_modules/http-cache-semantics": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", - "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", "dev": true }, "node_modules/http-proxy-agent": { @@ -12275,9 +12277,9 @@ } }, "http-cache-semantics": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", - "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", "dev": true }, "http-proxy-agent": { diff --git a/package.json b/package.json index 9274d6c..34b6a10 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "devDependencies": { "@webpack-cli/generators": "^3.0.1", "ts-loader": "^9.4.2", + "webpack-cli": "^5.0.1", "workbox-webpack-plugin": "^6.5.4" } } diff --git a/src/index.ts b/src/index.ts index 2575dd0..ecf6b7e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,7 +31,7 @@ const params: {[key:string]: string} = function connectTerm() { lineHandler = () => {}; term.writeln("\x1b[0mConnecting to server..."); - const wsurl = (document.localStorage['allow_wsurl'] !== true || params.wsurl === undefined) ? + const wsurl = (window.localStorage['allow_wsurl'] !== true || params.wsurl === undefined) ? "wss://ws.blastmud.org/wsgame" : params.wsurl; let webSocket = new WebSocket(wsurl); webSocket.addEventListener('open', (event) => {