mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
Fix issue with cache busting fix for intro video
This commit is contained in:
parent
22f6521fcb
commit
69d9f705a1
@ -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 ]
|
||||
|
||||
if (cacheBuster)
|
||||
file = [ file ];
|
||||
|
||||
if (!ignoredFiles.includes(file?.key) && cacheBuster)
|
||||
file.forEach(item => item.url += '?v=' + cacheBuster);
|
||||
|
||||
super.addFile(file);
|
||||
|
Loading…
Reference in New Issue
Block a user