diff --git a/web/js/pqueue.ui.core.js b/web/js/pqueue.ui.core.js index a894ebe..2f91715 100644 --- a/web/js/pqueue.ui.core.js +++ b/web/js/pqueue.ui.core.js @@ -9,7 +9,7 @@ const setStatusMessage = (window.PQueue && window.PQueue.setStatusMessage) || window.setStatusMessage; const copyText = (window.PQueue && window.PQueue.copyText) || window.copyText; - const UI = window.PQueue?.UI || {}; + const UI = window.PQueue?.UI || (window.PQueue = (window.PQueue || {}), window.PQueue.UI = {}, window.PQueue.UI); UI.el = function el(tag, attrs = {}, children = []) { const el = document.createElement(tag); diff --git a/web/js/pqueue.ui.gallery.js b/web/js/pqueue.ui.gallery.js index 090f8f3..d9c1361 100644 --- a/web/js/pqueue.ui.gallery.js +++ b/web/js/pqueue.ui.gallery.js @@ -1,7 +1,7 @@ (function () { "use strict"; - const UI = (window.PQueue && window.PQueue.UI) || window.UI; + const UI = (window.PQueue && window.PQueue.UI) || (window.PQueue = (window.PQueue || {}), window.PQueue.UI = {}, window.PQueue.UI); UI.ensureGallery = function ensureGallery() { if (UI.galleryOverlay) return; diff --git a/web/js/pqueue.ui.history.js b/web/js/pqueue.ui.history.js index f19e907..f5ff27b 100644 --- a/web/js/pqueue.ui.history.js +++ b/web/js/pqueue.ui.history.js @@ -2,7 +2,7 @@ "use strict"; const state = (window.PQueue && window.PQueue.state) || {}; - const UI = (window.PQueue && window.PQueue.UI) || window.UI; + const UI = (window.PQueue && window.PQueue.UI) || (window.PQueue = (window.PQueue || {}), window.PQueue.UI = {}, window.PQueue.UI); const Format = (window.PQueue && window.PQueue.Format) || window.Format; const Events = (window.PQueue && window.PQueue.Events) || window.Events; diff --git a/web/js/pqueue.ui.queue.js b/web/js/pqueue.ui.queue.js index 0f96181..12d0778 100644 --- a/web/js/pqueue.ui.queue.js +++ b/web/js/pqueue.ui.queue.js @@ -3,7 +3,7 @@ const state = (window.PQueue && window.PQueue.state) || {}; const API = (window.PQueue && window.PQueue.API) || window.API; - const UI = (window.PQueue && window.PQueue.UI) || window.UI; + const UI = (window.PQueue && window.PQueue.UI) || (window.PQueue = (window.PQueue || {}), window.PQueue.UI = {}, window.PQueue.UI); const Format = (window.PQueue && window.PQueue.Format) || window.Format; const setStatusMessage = (window.PQueue && window.PQueue.setStatusMessage) || window.setStatusMessage; diff --git a/web/js/pqueue.ui.render.js b/web/js/pqueue.ui.render.js index a805343..8a380d2 100644 --- a/web/js/pqueue.ui.render.js +++ b/web/js/pqueue.ui.render.js @@ -2,7 +2,7 @@ "use strict"; const state = (window.PQueue && window.PQueue.state) || {}; - const UI = (window.PQueue && window.PQueue.UI) || window.UI; + const UI = (window.PQueue && window.PQueue.UI) || (window.PQueue = (window.PQueue || {}), window.PQueue.UI = {}, window.PQueue.UI); const Events = (window.PQueue && window.PQueue.Events) || window.Events; const Format = (window.PQueue && window.PQueue.Format) || window.Format; diff --git a/web/js/pqueue.ui.toolbar.js b/web/js/pqueue.ui.toolbar.js index e483d1d..5c06d06 100644 --- a/web/js/pqueue.ui.toolbar.js +++ b/web/js/pqueue.ui.toolbar.js @@ -2,7 +2,7 @@ "use strict"; const state = (window.PQueue && window.PQueue.state) || {}; - const UI = (window.PQueue && window.PQueue.UI) || window.UI; + const UI = (window.PQueue && window.PQueue.UI) || (window.PQueue = (window.PQueue || {}), window.PQueue.UI = {}, window.PQueue.UI); const Events = (window.PQueue && window.PQueue.Events) || window.Events; UI.renderToolbar = function renderToolbar() { diff --git a/web/js/pqueue.ui.workflow.js b/web/js/pqueue.ui.workflow.js index 4f41130..8de16bb 100644 --- a/web/js/pqueue.ui.workflow.js +++ b/web/js/pqueue.ui.workflow.js @@ -1,7 +1,7 @@ (function () { "use strict"; - const UI = (window.PQueue && window.PQueue.UI) || window.UI; + const UI = (window.PQueue && window.PQueue.UI) || (window.PQueue = (window.PQueue || {}), window.PQueue.UI = {}, window.PQueue.UI); const copyText = (window.PQueue && window.PQueue.copyText) || window.copyText; UI.ensureWorkflowModal = function ensureWorkflowModal() {