Skip to content

Commit

Permalink
fixes tgui dev for 514 (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapu1178 authored Jul 29, 2023
1 parent 49c2e52 commit fa3e4c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tgui/packages/tgui-dev-server/reloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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);
Expand Down

0 comments on commit fa3e4c9

Please sign in to comment.