mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
Fix bug #61416
This commit is contained in:
@ -24,20 +24,13 @@
|
|||||||
let editorVersion = null;
|
let editorVersion = null;
|
||||||
let marketplaceURl = null;
|
let marketplaceURl = null;
|
||||||
const OOMarketplaceUrl = 'https://onlyoffice.github.io/store/index.html';
|
const OOMarketplaceUrl = 'https://onlyoffice.github.io/store/index.html';
|
||||||
const _userAgent = navigator.userAgent.toLowerCase();
|
try {
|
||||||
const isIE = (_userAgent.indexOf("msie") > -1 || _userAgent.indexOf("trident") > -1 || _userAgent.indexOf("edge") > -1);
|
// for incognito mode
|
||||||
|
|
||||||
if (isIE) {
|
|
||||||
marketplaceURl = localStorage.getItem('DeveloperMarketplaceUrl') || OOMarketplaceUrl;
|
marketplaceURl = localStorage.getItem('DeveloperMarketplaceUrl') || OOMarketplaceUrl;
|
||||||
} else {
|
} catch (err) {
|
||||||
try {
|
marketplaceURl = 'https://onlyoffice.github.io/store/index.html';
|
||||||
// for incognito mode
|
|
||||||
marketplaceURl = localStorage.getItem('DeveloperMarketplaceUrl') || OOMarketplaceUrl;
|
|
||||||
} catch {
|
|
||||||
marketplaceURl = 'https://onlyoffice.github.io/store/index.html';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", function() {
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
let pageUrl = marketplaceURl;
|
let pageUrl = marketplaceURl;
|
||||||
iframe.src = pageUrl + window.location.search;
|
iframe.src = pageUrl + window.location.search;
|
||||||
|
|||||||
Reference in New Issue
Block a user