|
|
@ -2765,15 +2765,15 @@ define([
|
|
|
|
store.networkPromise = info.networkPromise;
|
|
|
|
store.networkPromise = info.networkPromise;
|
|
|
|
store.cacheReturned = returned;
|
|
|
|
store.cacheReturned = returned;
|
|
|
|
|
|
|
|
|
|
|
|
// Check if we can connect
|
|
|
|
|
|
|
|
var to = setTimeout(function () {
|
|
|
|
|
|
|
|
store.networkTimeout = true;
|
|
|
|
|
|
|
|
broadcast([], "LOADING_DRIVE", {
|
|
|
|
|
|
|
|
type: "offline"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}, 5000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (store.networkPromise && store.networkPromise.then) {
|
|
|
|
if (store.networkPromise && store.networkPromise.then) {
|
|
|
|
|
|
|
|
// Check if we can connect
|
|
|
|
|
|
|
|
var to = setTimeout(function () {
|
|
|
|
|
|
|
|
store.networkTimeout = true;
|
|
|
|
|
|
|
|
broadcast([], "LOADING_DRIVE", {
|
|
|
|
|
|
|
|
type: "offline"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}, 5000);
|
|
|
|
|
|
|
|
|
|
|
|
store.networkPromise.then(function () {
|
|
|
|
store.networkPromise.then(function () {
|
|
|
|
clearTimeout(to);
|
|
|
|
clearTimeout(to);
|
|
|
|
}, function (err) {
|
|
|
|
}, function (err) {
|
|
|
|