From 69200bbf0cc45cb0395e9cf86cf5b53f76205c04 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sun, 20 Oct 2019 23:10:08 -0400 Subject: [PATCH] Fixed #161 - Reload loop after migration from beestat.io/dashboard to app.beestat.io Another fix for users who don't land on the homepage. --- js/beestat/api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/beestat/api.js b/js/beestat/api.js index 46eb389..3bc0f34 100644 --- a/js/beestat/api.js +++ b/js/beestat/api.js @@ -178,7 +178,8 @@ beestat.api.prototype.load_ = function(response_text) { response.data.error_code === 10003 // Could not refresh ecobee token; ecobee returned no token. ) ) { - window.location.href = '/'; + // window.location.href = '/'; + window.location.href = 'https://beestat.io'; return; } else if (response.data && response.data.error_code === 1209) { // Could not get lock; safe to ignore as that means sync is running.