From 7975f0b0de3b9efbb7ec960518645139ff0e874c Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Fri, 11 Dec 2020 14:43:05 -0800 Subject: [PATCH] fix(plg): hotfix to reference non minified web components --- dynamix.unraid.net.plg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dynamix.unraid.net.plg b/dynamix.unraid.net.plg index a3d61b1ca..757742a13 100644 --- a/dynamix.unraid.net.plg +++ b/dynamix.unraid.net.plg @@ -1781,14 +1781,14 @@ const injectJS = (src) => { }; // by default prod is loaded from hosted sources let vueFile = `${VUE_CDN_PREFIX}/dist/vue.min.js`; -let wcEntryFile = 'https://registration.unraid.net/wc/unraid.min.js'; +let wcEntryFile = 'https://registration.unraid.net/wc/unraid.js'; // determine what source we should use if (UPC_ENV !== 'production') console.debug('[UPC_ENV]', UPC_ENV); switch (UPC_ENV) { case 'staging': // min version of staging vueFile = `${VUE_CDN_PREFIX}/dist/vue.min.js`; - wcEntryFile = 'https://registration-dev.unraid.net/wc/unraid.min.js'; + wcEntryFile = 'https://registration-dev.unraid.net/wc/unraid.js'; break; case 'staging-debug': // non-min version of staging @@ -1798,7 +1798,7 @@ switch (UPC_ENV) { case 'local': // forces load from webGUI filesystem vueFile = ''; - wcEntryFile = ''; // @TODO / WIP - non-min files aren't downloaded just yet. + wcEntryFile = ''; // @TODO / WIP - non-min files aren't downloaded just yet. break; case 'development': // local filesystem Vue.js + external "local" dev server for RegWiz development @@ -1827,7 +1827,7 @@ setTimeout(() => { checkForVue = setInterval(() => { // reset check if (!window.Vue) return; clearInterval(checkForVue); // stop checking - injectJS(""); // and just inject it already! + injectJS(""); // and just inject it already! }, 10); } }, 2000);