mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Add use_bundled_gui option
This commit is contained in:
parent
397819d45e
commit
826ea36502
@ -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,
|
||||
|
@ -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 = ({
|
||||
|
||||
<body>
|
||||
<script>window.puter_gui_enabled = true;</script>
|
||||
${
|
||||
use_bundled_gui
|
||||
? `<script>window.gui_env = 'prod';</script>`
|
||||
: ''
|
||||
}
|
||||
${
|
||||
((env == 'dev' && manifest?.lib_paths)
|
||||
? manifest.lib_paths.map(path => `<script type="text/javascript" src="${path}"></script>\n`)
|
||||
|
Loading…
Reference in New Issue
Block a user