Fix issue with cache busting fix for intro video

pull/142/head
Flashfyre 2024-04-15 14:14:41 -04:00
parent 22f6521fcb
commit 69d9f705a1
1 changed files with 3 additions and 6 deletions

View File

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