Fix the duplicate loading issue

This commit is contained in:
KernelDeimos
2024-05-06 00:02:46 -04:00
parent df88373519
commit 4ad50b14d6
+1 -1
View File
@@ -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