diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-09-03 18:14:43 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-09-03 18:14:43 +0200 |
| commit | 0261ee59c47c4a940cd41b526bd891a97c02a6dd (patch) | |
| tree | f67ee85390c75801de2312b94a624b13326dbae9 /StoneIsland/www/js/index.js | |
| parent | 6f2af841c17ff4ed28d40121114825a40e8cf6fa (diff) | |
ditching iscroll
Diffstat (limited to 'StoneIsland/www/js/index.js')
| -rwxr-xr-x | StoneIsland/www/js/index.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js index 69a0a3e0..b2c70bee 100755 --- a/StoneIsland/www/js/index.js +++ b/StoneIsland/www/js/index.js @@ -12,6 +12,10 @@ var app = (function(){ sdk.init({ env: "production" }) } + accessibility.init(app.prebuild) // check if we can do native scrolling before build + } + + app.prebuild = function(){ app.bind() app.build() @@ -86,15 +90,6 @@ var app = (function(){ sim.fetch(app.api_ready) var image = new Image image.src = "./img/compass-logo.png" - - MobileAccessibility.usePreferredTextZoom(true); - MobileAccessibility.getTextZoom(function getTextZoomCallback(textZoom) { - console.log('WebView text should be scaled to the preferred value ' + textZoom + '%') - if (textZoom > 100) { - app.accessible = true - $("html").addClass('accessible') - } - }); } else { app.api_ready() |
