mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +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');
|
||||
};
|
||||
window.noAuth = '{{ no_auth }}';
|
||||
window.clientId = '{{ client_id }}'
|
||||
window.useOAuth = '{{ use_oauth }}'
|
||||
window.Polymer = {
|
||||
lazyRegister: true,
|
||||
useNativeCSSProperties: true,
|
||||
|
@ -86,7 +86,7 @@ function mainLegacy() {
|
||||
}
|
||||
}
|
||||
|
||||
if (window.clientId) {
|
||||
if (window.useOAuth === '1') {
|
||||
main();
|
||||
} else {
|
||||
mainLegacy();
|
||||
|
Loading…
x
Reference in New Issue
Block a user