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 {
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user