Fixed open editors on sailfish devices

This commit is contained in:
Alexander Yuzhin 2019-03-21 09:35:50 +03:00
parent ed5c599768
commit 40869ada36
6 changed files with 55 additions and 55 deletions

View file

@ -246,17 +246,17 @@
<script type="text/javascript" src="../sdk_dev_scripts.js"></script> <script type="text/javascript" src="../sdk_dev_scripts.js"></script>
<script> <script>
function isSailfish() {
var ua = navigator.userAgent; var ua = navigator.userAgent;
return /Sailfish/.test(ua) || /Jolla/.test(ua);
}
if (isSailfish()) { if (/Sailfish/.test(ua) || /Jolla/.test(ua)) {
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>');
if (!/R7OfficeApp/.test(ua)) {
var ua = navigator.userAgent + ';Android 5.0;'; var ua = navigator.userAgent + ';Android 5.0;';
Object.defineProperty(navigator, 'userAgent', { Object.defineProperty(navigator, 'userAgent', {
get: function () { return ua; } get: function () { return ua; }
}); });
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>'); }
} }
window.sdk_dev_scrpipts.forEach(function(item){ window.sdk_dev_scrpipts.forEach(function(item){

View file

@ -182,17 +182,17 @@
</head> </head>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">
function isSailfish() {
var ua = navigator.userAgent; var ua = navigator.userAgent;
return /Sailfish/.test(ua) || /Jolla/.test(ua);
}
if (isSailfish()) { if (/Sailfish/.test(ua) || /Jolla/.test(ua)) {
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>');
if (!/R7OfficeApp/.test(ua)) {
var ua = navigator.userAgent + ';Android 5.0;'; var ua = navigator.userAgent + ';Android 5.0;';
Object.defineProperty(navigator, 'userAgent', { Object.defineProperty(navigator, 'userAgent', {
get: function () { return ua; } get: function () { return ua; }
}); });
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>'); }
} }
function getUrlParams() { function getUrlParams() {

View file

@ -246,17 +246,17 @@
<script type="text/javascript" src="../sdk_dev_scripts.js"></script> <script type="text/javascript" src="../sdk_dev_scripts.js"></script>
<script> <script>
function isSailfish() {
var ua = navigator.userAgent; var ua = navigator.userAgent;
return /Sailfish/.test(ua) || /Jolla/.test(ua);
}
if (isSailfish()) { if (/Sailfish/.test(ua) || /Jolla/.test(ua)) {
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>');
if (!/R7OfficeApp/.test(ua)) {
var ua = navigator.userAgent + ';Android 5.0;'; var ua = navigator.userAgent + ';Android 5.0;';
Object.defineProperty(navigator, 'userAgent', { Object.defineProperty(navigator, 'userAgent', {
get: function () { return ua; } get: function () { return ua; }
}); });
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>'); }
} }
window.sdk_dev_scrpipts.forEach(function(item){ window.sdk_dev_scrpipts.forEach(function(item){

View file

@ -182,17 +182,17 @@
</head> </head>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">
function isSailfish() {
var ua = navigator.userAgent; var ua = navigator.userAgent;
return /Sailfish/.test(ua) || /Jolla/.test(ua);
}
if (isSailfish()) { if (/Sailfish/.test(ua) || /Jolla/.test(ua)) {
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>');
if (!/R7OfficeApp/.test(ua)) {
var ua = navigator.userAgent + ';Android 5.0;'; var ua = navigator.userAgent + ';Android 5.0;';
Object.defineProperty(navigator, 'userAgent', { Object.defineProperty(navigator, 'userAgent', {
get: function () { return ua; } get: function () { return ua; }
}); });
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>'); }
} }
function getUrlParams() { function getUrlParams() {

View file

@ -247,17 +247,17 @@
<script type="text/javascript" src="../sdk_dev_scripts.js"></script> <script type="text/javascript" src="../sdk_dev_scripts.js"></script>
<script> <script>
function isSailfish() {
var ua = navigator.userAgent; var ua = navigator.userAgent;
return /Sailfish/.test(ua) || /Jolla/.test(ua);
}
if (isSailfish()) { if (/Sailfish/.test(ua) || /Jolla/.test(ua)) {
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>');
if (!/R7OfficeApp/.test(ua)) {
var ua = navigator.userAgent + ';Android 5.0;'; var ua = navigator.userAgent + ';Android 5.0;';
Object.defineProperty(navigator, 'userAgent', { Object.defineProperty(navigator, 'userAgent', {
get: function () { return ua; } get: function () { return ua; }
}); });
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>'); }
} }
window.sdk_dev_scrpipts.forEach(function(item){ window.sdk_dev_scrpipts.forEach(function(item){

View file

@ -181,17 +181,17 @@
</head> </head>
<body> <body>
<script type="text/javascript"> <script type="text/javascript">
function isSailfish() {
var ua = navigator.userAgent; var ua = navigator.userAgent;
return /Sailfish/.test(ua) || /Jolla/.test(ua);
}
if (isSailfish()) { if (/Sailfish/.test(ua) || /Jolla/.test(ua)) {
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>');
if (!/R7OfficeApp/.test(ua)) {
var ua = navigator.userAgent + ';Android 5.0;'; var ua = navigator.userAgent + ';Android 5.0;';
Object.defineProperty(navigator, 'userAgent', { Object.defineProperty(navigator, 'userAgent', {
get: function () { return ua; } get: function () { return ua; }
}); });
document.write('<script type="text/javascript" src="../../../vendor/iscroll/iscroll.js"><\/script>'); }
} }
function getUrlParams() { function getUrlParams() {