From fa3e4c952187ac6558663533194c9b076d333073 Mon Sep 17 00:00:00 2001 From: Kapu1178 <75460809+Kapu1178@users.noreply.github.com> Date: Sat, 29 Jul 2023 18:03:04 -0400 Subject: [PATCH] fixes tgui dev for 514 (#447) --- tgui/packages/tgui-dev-server/reloader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tgui/packages/tgui-dev-server/reloader.js b/tgui/packages/tgui-dev-server/reloader.js index ef7aee06ed17..f130093badbb 100644 --- a/tgui/packages/tgui-dev-server/reloader.js +++ b/tgui/packages/tgui-dev-server/reloader.js @@ -67,6 +67,8 @@ export const findCacheRoot = async () => { const onCacheRootFound = cacheRoot => { logger.log(`found cache at '${cacheRoot}'`); + // Plant a dummy browser window file, byond 514 stuff. + fs.closeSync(fs.openSync(cacheRoot + '/dummy', 'w')); }; export const reloadByondCache = async bundleDir => { @@ -92,7 +94,7 @@ export const reloadByondCache = async bundleDir => { const garbage = await resolveGlob(cacheDir, './*.+(bundle|chunk|hot-update).*'); try { // Plant a dummy browser window file - // we'll be using this to avoid world topic + // we'll be using this to avoid world topic for 515 fs.closeSync(fs.openSync(cacheDir + '/dummy', 'w')); for (let file of garbage) { fs.unlinkSync(file);