mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
on load force lib online
This commit is contained in:
parent
406edb5768
commit
c846b2ee44
@ -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(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user