[sailfish] debug
This commit is contained in:
parent
bb8d5eeb8c
commit
9e31453077
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue