mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +00:00
Fix when not using oauth (#1434)
This commit is contained in:
parent
89ab6a7d5d
commit
dbb6a8e6d4
@ -61,7 +61,7 @@
|
|||||||
document.getElementById('ha-init-skeleton').classList.add('error');
|
document.getElementById('ha-init-skeleton').classList.add('error');
|
||||||
};
|
};
|
||||||
window.noAuth = '{{ no_auth }}';
|
window.noAuth = '{{ no_auth }}';
|
||||||
window.clientId = '{{ client_id }}'
|
window.useOAuth = '{{ use_oauth }}'
|
||||||
window.Polymer = {
|
window.Polymer = {
|
||||||
lazyRegister: true,
|
lazyRegister: true,
|
||||||
useNativeCSSProperties: true,
|
useNativeCSSProperties: true,
|
||||||
|
@ -86,7 +86,7 @@ function mainLegacy() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.clientId) {
|
if (window.useOAuth === '1') {
|
||||||
main();
|
main();
|
||||||
} else {
|
} else {
|
||||||
mainLegacy();
|
mainLegacy();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user