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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user