Fix issue with cache busting fix for intro video

This commit is contained in:
Flashfyre 2024-04-15 14:14:41 -04:00
parent 22f6521fcb
commit 69d9f705a1

View File

@ -16,13 +16,10 @@ export default class CacheBustedLoaderPlugin extends Phaser.Loader.LoaderPlugin
} }
addFile(file): void { addFile(file): void {
if (ignoredFiles.includes(file?.key))
return;
if (!Array.isArray(file)) if (!Array.isArray(file))
file = [ file ] file = [ file ];
if (cacheBuster) if (!ignoredFiles.includes(file?.key) && cacheBuster)
file.forEach(item => item.url += '?v=' + cacheBuster); file.forEach(item => item.url += '?v=' + cacheBuster);
super.addFile(file); super.addFile(file);