diff --git a/lib/server.js b/lib/server.js index 572cf0234..ad62951f5 100644 --- a/lib/server.js +++ b/lib/server.js @@ -1251,8 +1251,6 @@ class WebServer { return this._indexHtml; } const text = fs.readFileSync(getRootPath() + 'index.html').toString('utf-8'); - this._indexHtml = text; - return text; const lines = text.split('\n'); const nLines = []; let template = false; @@ -1275,7 +1273,9 @@ class WebServer { hideScript.push('window.hassNoAuth = "NO_AUTH";'); hideScript.push('window.__tokenCache = {tokens: undefined, writeEnabled: false};'); } - nLines.push(''); + nLines.push(''); + //deprecated. + //nLines.push(''); } if (template) { continue;