diff --git a/src/index.js b/src/index.js index 2dc7defd9..f3f3c0fe3 100644 --- a/src/index.js +++ b/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