From 69d9f705a121ae068191a7907a20dcf6700e8936 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 15 Apr 2024 14:14:41 -0400 Subject: [PATCH] Fix issue with cache busting fix for intro video --- src/plugins/cache-busted-loader-plugin.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/plugins/cache-busted-loader-plugin.ts b/src/plugins/cache-busted-loader-plugin.ts index 4fb20b670..e1ee78709 100644 --- a/src/plugins/cache-busted-loader-plugin.ts +++ b/src/plugins/cache-busted-loader-plugin.ts @@ -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);