diff --git a/Readme.md b/Readme.md index 120a5c6..d99fe45 100644 --- a/Readme.md +++ b/Readme.md @@ -25,6 +25,11 @@ zhv : { } ``` +## Note Regarding Localstorage + +If you use local storage please prefix your variables with an unique prefix (your webapp name + random uuid should do it) to avoid collision with other web apps. +Also don't use `clear()` as it clears everything for every webapp. + ## Building ZHV Debug build: diff --git a/app/build.gradle b/app/build.gradle index 3deb6b4..170efa6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { // don't go bellow 19, otherwise you may introduce web-view security risks minSdkVersion 19 targetSdkVersion 28 - versionCode 3 - versionName "1.2" + versionCode 4 + versionName "1.3" } signingConfigs { diff --git a/app/src/main/java/de/simonlaux/ziphtmlviewer/OpenActivity.java b/app/src/main/java/de/simonlaux/ziphtmlviewer/OpenActivity.java index dc7cebf..da727e2 100644 --- a/app/src/main/java/de/simonlaux/ziphtmlviewer/OpenActivity.java +++ b/app/src/main/java/de/simonlaux/ziphtmlviewer/OpenActivity.java @@ -72,6 +72,7 @@ private void handleIntent() { webSettings.setJavaScriptEnabled(true); webSettings.setSupportZoom(true); webSettings.setBuiltInZoomControls(true); + webSettings.setDomStorageEnabled(true); class JsObject { @JavascriptInterface public int getVersion() { return BuildConfig.VERSION_CODE; }