diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-09-05 21:30:08 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-09-05 21:30:08 +1200 |
commit | ca6b408cc068c1e21641d1464350beb1daef872e (patch) | |
tree | 973ae86dc3ed34be547ea41ce1025397252975ed | |
parent | d1bcd3f88bf5deefd471b6cec9aa2bfb402135b9 (diff) | |
download | trackermap-web-ca6b408cc068c1e21641d1464350beb1daef872e.tar.gz trackermap-web-ca6b408cc068c1e21641d1464350beb1daef872e.tar.bz2 trackermap-web-ca6b408cc068c1e21641d1464350beb1daef872e.zip |
Hack for Android Oreo browser
-rw-r--r-- | web/load.js | 6 |
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'; |