aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-05 21:30:08 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-09-05 21:30:08 +1200
commitca6b408cc068c1e21641d1464350beb1daef872e (patch)
tree973ae86dc3ed34be547ea41ce1025397252975ed
parentd1bcd3f88bf5deefd471b6cec9aa2bfb402135b9 (diff)
downloadtrackermap-web-ca6b408cc068c1e21641d1464350beb1daef872e.tar.gz
trackermap-web-ca6b408cc068c1e21641d1464350beb1daef872e.tar.bz2
trackermap-web-ca6b408cc068c1e21641d1464350beb1daef872e.zip
Hack for Android Oreo browser
-rw-r--r--web/load.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/load.js b/web/load.js
index 730136f1..cb5defd8 100644
--- a/web/load.js
+++ b/web/load.js
@@ -137,6 +137,12 @@
});
+ // Hack for new versions of Android
+ if (navigator.userAgent.indexOf('Android') !== -1 && navigator.userAgent.indexOf('OPR') !== -1) {
+ var __originalUserAgent = navigator.userAgent;
+ navigator.__defineGetter__('userAgent', function () { return __originalUserAgent.replace(/\/OPR[^)]*/g, ''); });
+ }
+
extjsVersion = '6.2.0';
fontAwesomeVersion = '4.7.0';
olVersion = '4.3.2';