From c846b2ee4459db8ddc13c61b8cbc8e8ef22969ae Mon Sep 17 00:00:00 2001 From: Andy Gup Date: Fri, 21 Nov 2014 10:41:52 -0700 Subject: [PATCH] on load force lib online --- samples/appcache-features.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/samples/appcache-features.html b/samples/appcache-features.html index e69e13f..c034f28 100644 --- a/samples/appcache-features.html +++ b/samples/appcache-features.html @@ -359,6 +359,13 @@ Offline.check(); Offline.on('up', goOnline); 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(){