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

master
Skylar Ittner 5 лет назад
Родитель 71a6cc1c57
Коммит 40e6ff1b64

@ -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");

@ -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>

Загрузка…
Отмена
Сохранить