From 81516c9ffef6255c230ad75162c167561deca945 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 26 Nov 2020 01:45:23 -0500 Subject: [PATCH] Remove standalone.js and broken navigation --- src/scripts/site.js | 7 ++----- src/scripts/standalone.js | 3 --- webpack.dev.js | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 src/scripts/standalone.js diff --git a/src/scripts/site.js b/src/scripts/site.js index 6a582d7ebe..7012f7dd2c 100644 --- a/src/scripts/site.js +++ b/src/scripts/site.js @@ -77,12 +77,9 @@ function loadCoreDictionary() { function init() { serverAddress().then(server => { - if (!server) { - navigate('selectserver.html'); - return; + if (server) { + ServerConnections.initApiClient(server); } - - ServerConnections.initApiClient(server); }).then(() => { console.debug('initAfterDependencies promises resolved'); diff --git a/src/scripts/standalone.js b/src/scripts/standalone.js deleted file mode 100644 index 4a455fe9da..0000000000 --- a/src/scripts/standalone.js +++ /dev/null @@ -1,3 +0,0 @@ -window.appMode = 'standalone'; - -import('./site'); diff --git a/webpack.dev.js b/webpack.dev.js index 0f3a02925c..046a1edd73 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -4,7 +4,7 @@ const merge = require('webpack-merge'); module.exports = merge(common, { mode: 'development', - entry: './scripts/standalone.js', + entry: './scripts/site.js', devtool: 'source-map', module: { rules: [