From 4ad50b14d62c2ac2be5d66cc855ce9f65c183299 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Fri, 3 May 2024 23:54:17 -0400 Subject: [PATCH] Fix the duplicate loading issue --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 2dc7defd..f3f3c0fe 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