summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/index.js')
-rwxr-xr-xStoneIsland/www/js/index.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index ed82a820..69a0a3e0 100755
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/www/js/index.js
@@ -86,6 +86,15 @@ 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()