Fix when not using oauth (#1434)

This commit is contained in:
Paulus Schoutsen 2018-07-10 10:49:51 +02:00 committed by GitHub
parent 89ab6a7d5d
commit dbb6a8e6d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -86,7 +86,7 @@ function mainLegacy() {
}
}
if (window.clientId) {
if (window.useOAuth === '1') {
main();
} else {
mainLegacy();