1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Tweak index.html (#657)

This commit is contained in:
Paulus Schoutsen
2017-11-20 21:52:35 -08:00
committed by GitHub
parent 3412edb843
commit 3d90d1d016
7 changed files with 32 additions and 25 deletions

View File

@@ -23,7 +23,7 @@ const init = window.createHassConnection = function (password) {
});
};
if (window.noAuth) {
if (window.noAuth === '1') {
window.hassConnection = init();
} else if (window.localStorage.authToken) {
window.hassConnection = init(window.localStorage.authToken);