forked from CGM_Public/pretix_original
Directly load editor on supported browsers
This commit is contained in:
@@ -322,12 +322,21 @@ var editor = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_ready: function () {
|
_ready: function () {
|
||||||
$("#editor-loading").hide();
|
var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
|
||||||
$("#editor-start").removeClass("sr-only");
|
var isFirefox = typeof InstallTrigger !== 'undefined';
|
||||||
$("#editor-start").click(function () {
|
var isChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
|
||||||
|
var isEdgeChromium = isChrome && (navigator.userAgent.indexOf("Edg") != -1);
|
||||||
|
if (isChrome || isOpera || isFirefox || isEdgeChromium) {
|
||||||
$("#loading-container").hide();
|
$("#loading-container").hide();
|
||||||
$("#loading-initial").remove();
|
$("#loading-initial").remove();
|
||||||
});
|
} else {
|
||||||
|
$("#editor-loading").hide();
|
||||||
|
$("#editor-start").removeClass("sr-only");
|
||||||
|
$("#editor-start").click(function () {
|
||||||
|
$("#loading-container").hide();
|
||||||
|
$("#loading-initial").remove();
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_update_toolbox_values: function () {
|
_update_toolbox_values: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user