on load force lib online

This commit is contained in:
Andy Gup 2014-11-21 10:41:52 -07:00
parent 406edb5768
commit c846b2ee44

View File

@ -359,6 +359,13 @@
Offline.check(); Offline.check();
Offline.on('up', goOnline); Offline.on('up', goOnline);
Offline.on('down', goOffline); Offline.on('down', goOffline);
// If the app is online then set offlineFeaturesManager to its online state
// This will force the library to check for pending edits and attempt to
// resend them to the Feature Service.
if(_isOnline == true){
offlineFeaturesManager.goOnline();
}
} }
function updateStatus(){ function updateStatus(){