From 826ea36502ee3b6c1f0c21cf60836191a0d5e461 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Mon, 15 Apr 2024 17:50:44 -0400 Subject: [PATCH] Add use_bundled_gui option --- packages/backend/src/routers/_default.js | 1 + packages/backend/src/temp/puter_page_loader.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/packages/backend/src/routers/_default.js b/packages/backend/src/routers/_default.js index b658c419..a475bf11 100644 --- a/packages/backend/src/routers/_default.js +++ b/packages/backend/src/routers/_default.js @@ -300,6 +300,7 @@ router.all('*', async function(req, res, next) { app_origin: APP_ORIGIN, api_origin: API_ORIGIN, + use_bundled_gui: config.use_bundled_gui, manifest, gui_path: config.assets.gui, diff --git a/packages/backend/src/temp/puter_page_loader.js b/packages/backend/src/temp/puter_page_loader.js index da682c45..aba092c6 100644 --- a/packages/backend/src/temp/puter_page_loader.js +++ b/packages/backend/src/temp/puter_page_loader.js @@ -25,6 +25,7 @@ const generate_puter_page_html = ({ manifest, gui_path, + use_bundled_gui, app_origin, api_origin, @@ -113,6 +114,11 @@ const generate_puter_page_html = ({ + ${ + use_bundled_gui + ? `` + : '' + } ${ ((env == 'dev' && manifest?.lib_paths) ? manifest.lib_paths.map(path => `\n`)