mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Fix the duplicate loading issue
This commit is contained in:
parent
df88373519
commit
4ad50b14d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user