Sfoglia il codice sorgente

Fix the duplicate loading issue

KernelDeimos 1 anno fa
parent
commit
4ad50b14d6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/index.js

+ 1 - 1
src/index.js

@@ -56,7 +56,7 @@ window.gui = async function(options){
     // DEV: Load the initgui.js file if we are in development mode
     if(!window.gui_env || window.gui_env === "dev"){
         await window.loadScript('/sdk/puter.dev.js');
-        await window.loadScript('/initgui.js', {isModule: true});
+        await window.loadScript(`${options.asset_dir}/initgui.js`, {isModule: true});
     }
     
     // PROD: load the minified bundles if we are in production mode