mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Revert of a Revert | ListInputModal (#82854)
This reverts commit 9acf5bd821.
MSO determined that because we use `file(...)` instead of a string
instead of an asset being locked to its initial state via a cache object
we are sending it as it is on disk every time. which means that when a
new server deployment updates the tgui it will send this new tgui code
even if the currently running DM code does not support it.
This commit is contained in:
@@ -1,3 +1,23 @@
|
||||
// If you use a file(...) object, instead of caching the asset it will be loaded from disk every time it's requested.
|
||||
// This is useful for development, but not recommended for production.
|
||||
// And if TGS is defined, we're being run in a production environment.
|
||||
|
||||
#ifdef TGS
|
||||
/datum/asset/simple/tgui
|
||||
keep_local_name = FALSE
|
||||
assets = list(
|
||||
"tgui.bundle.js" = "tgui/public/tgui.bundle.js",
|
||||
"tgui.bundle.css" = "tgui/public/tgui.bundle.css",
|
||||
)
|
||||
|
||||
/datum/asset/simple/tgui_panel
|
||||
keep_local_name = FALSE
|
||||
assets = list(
|
||||
"tgui-panel.bundle.js" = "tgui/public/tgui-panel.bundle.js",
|
||||
"tgui-panel.bundle.css" = "tgui/public/tgui-panel.bundle.css",
|
||||
)
|
||||
|
||||
#else
|
||||
/datum/asset/simple/tgui
|
||||
keep_local_name = TRUE
|
||||
assets = list(
|
||||
@@ -11,3 +31,5 @@
|
||||
"tgui-panel.bundle.js" = file("tgui/public/tgui-panel.bundle.js"),
|
||||
"tgui-panel.bundle.css" = file("tgui/public/tgui-panel.bundle.css"),
|
||||
)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user