Browse Source

Alert users when their WebView is too old to work properly.

tags/v1.1.0
Skylar Ittner 10 months ago
parent
commit
40e6ff1b64
2 changed files with 10 additions and 0 deletions
  1. 6
    0
      www/js/platform.js
  2. 4
    0
      www/pages/editor.html

+ 6
- 0
www/js/platform.js View File

@@ -13,6 +13,12 @@ var openBrowser = function (url) {
function initCordova() {
platform_type = "cordova";

try {
eval('"use strict"; class foo {}');
} catch (e) {
alert("Your device's webview is out of date and won't work with this app. Please update it.");
}

// Handle back button to close things
document.addEventListener("backbutton", function (event) {
router.navigate("/home");

+ 4
- 0
www/pages/editor.html View File

@@ -31,6 +31,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
background-color: white;
border: none;
border-radius: 0px;
/* Following lines are from Framework7 .elevation-2 */
-webkit-box-shadow: 0px 3px 1px -2px rgba(0,0,0,.2),0px 2px 2px 0px rgba(0,0,0,.14),0px 1px 5px 0px rgba(0,0,0,.12);
box-shadow: 0px 3px 1px -2px rgba(0,0,0,.2),0px 2px 2px 0px rgba(0,0,0,.14),0px 1px 5px 0px rgba(0,0,0,.12);
/* end Framework7 code */
}
</style>


Loading…
Cancel
Save