at the very least fixes tgui?
This commit is contained in:
@@ -28,6 +28,9 @@ export class DreamSeeker {
|
||||
.map(key => encodeURIComponent(key)
|
||||
+ '=' + encodeURIComponent(params[key]))
|
||||
.join('&');
|
||||
logger.log(
|
||||
`topic call at ${this.client.defaults.baseURL + '/dummy?' + query}`
|
||||
);
|
||||
return this.client.get('/dummy?' + query);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,8 +67,6 @@ export const findCacheRoot = async () => {
|
||||
|
||||
const onCacheRootFound = cacheRoot => {
|
||||
logger.log(`found cache at '${cacheRoot}'`);
|
||||
// Plant a dummy
|
||||
fs.closeSync(fs.openSync(cacheRoot + '/dummy', 'w'));
|
||||
};
|
||||
|
||||
export const reloadByondCache = async bundleDir => {
|
||||
@@ -93,6 +91,9 @@ export const reloadByondCache = async bundleDir => {
|
||||
// Clear garbage
|
||||
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
|
||||
fs.closeSync(fs.openSync(cacheDir + '/dummy', 'w'));
|
||||
|
||||
for (let file of garbage) {
|
||||
fs.unlinkSync(file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user