Ignore cache busting for intro video

pull/142/head
Flashfyre 2024-04-15 14:10:48 -04:00
parent c1d641251b
commit 22f6521fcb
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,7 @@
let cacheBuster = '';
const ignoredFiles = [ 'intro_dark' ];
export default class CacheBustedLoaderPlugin extends Phaser.Loader.LoaderPlugin {
constructor(scene: Phaser.Scene) {
super(scene)
@ -14,6 +16,9 @@ export default class CacheBustedLoaderPlugin extends Phaser.Loader.LoaderPlugin
}
addFile(file): void {
if (ignoredFiles.includes(file?.key))
return;
if (!Array.isArray(file))
file = [ file ]