1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

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.
This commit is contained in:
Jon Ziebell 2019-10-20 23:10:08 -04:00
parent 48baf93f25
commit 69200bbf0c

View File

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