mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
added checks for undefined object
This commit is contained in:
parent
5a8196d655
commit
c3aba631b1
@ -194,11 +194,11 @@ console.log("LIBRARY STATUS IS: " + Offline.state);
|
||||
if(Offline.state === 'up'){
|
||||
// updateOfflineUsage();
|
||||
imgOfflineIndicator.src = bluePinPath;
|
||||
baseMapLayer.goOnline();
|
||||
if(typeof baseMapLayer != "undefined") baseMapLayer.goOnline();
|
||||
}
|
||||
else{
|
||||
imgOfflineIndicator.src = redPinPath;
|
||||
baseMapLayer.goOffline();
|
||||
if(typeof baseMapLayer != "undefined") baseMapLayer.goOffline();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user