From 99646223d4ac08ef94438257642e18a5908b5128 Mon Sep 17 00:00:00 2001 From: Nikolay Demyankov Date: Mon, 1 Feb 2016 10:31:38 +0100 Subject: [PATCH] Fix for https://github.com/nordnet/cordova-hot-code-push/issues/93 and https://github.com/nordnet/cordova-hot-code-push/issues/95 --- src/android/src/com/nordnetab/chcp/main/HotCodePushPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/android/src/com/nordnetab/chcp/main/HotCodePushPlugin.java b/src/android/src/com/nordnetab/chcp/main/HotCodePushPlugin.java index a92a9768..589bbfd9 100644 --- a/src/android/src/com/nordnetab/chcp/main/HotCodePushPlugin.java +++ b/src/android/src/com/nordnetab/chcp/main/HotCodePushPlugin.java @@ -119,7 +119,8 @@ public void onStart() { } // reload only if we on local storage - if (!dontReloadOnStart && webView.getUrl().startsWith(LOCAL_ASSETS_FOLDER)) { + if (!dontReloadOnStart) { + dontReloadOnStart = true; redirectToLocalStorageIndexPage(); }