From dbb6a8e6d4f680dc894a667c3c9f61bd49893e6d Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 10 Jul 2018 10:49:51 +0200 Subject: [PATCH] Fix when not using oauth (#1434) --- index.html | 2 +- src/entrypoints/core.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index dfad638741..4bd911162a 100644 --- a/index.html +++ b/index.html @@ -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, diff --git a/src/entrypoints/core.js b/src/entrypoints/core.js index c6b314eaf5..76647a9430 100644 --- a/src/entrypoints/core.js +++ b/src/entrypoints/core.js @@ -86,7 +86,7 @@ function mainLegacy() { } } -if (window.clientId) { +if (window.useOAuth === '1') { main(); } else { mainLegacy();