Fix timeout issue on cacheready

pull/1/head
yflory 4 years ago
parent b8b2373512
commit 87a7669f29

@ -2765,6 +2765,7 @@ define([
store.networkPromise = info.networkPromise;
store.cacheReturned = returned;
if (store.networkPromise && store.networkPromise.then) {
// Check if we can connect
var to = setTimeout(function () {
store.networkTimeout = true;
@ -2773,7 +2774,6 @@ define([
});
}, 5000);
if (store.networkPromise && store.networkPromise.then) {
store.networkPromise.then(function () {
clearTimeout(to);
}, function (err) {

Loading…
Cancel
Save