[sailfish] debug

This commit is contained in:
Maxim Kadushkin 2019-03-15 16:24:30 +03:00
parent bb8d5eeb8c
commit 9e31453077

View file

@ -182,6 +182,18 @@
</head>
<body>
<script type="text/javascript">
function isSailfish() {
var ua = navigator.userAgent;
return /Sailfish/.test(ua) || /Jolla/.test(ua);
}
if (isSailfish()) {
var ua = navigator.userAgent + ';Android 5.0;';
Object.defineProperty(navigator, 'userAgent', {
get: function () { return ua; }
});
}
function getUrlParams() {
var e,
a = /\+/g, // Regex for replacing addition symbol with a space