diff --git a/public/images/intro_dark.mp4 b/public/images/intro_dark.mp4 deleted file mode 100644 index bd3f8f61ab3..00000000000 Binary files a/public/images/intro_dark.mp4 and /dev/null differ diff --git a/public/images/intro_dark.webm b/public/images/intro_dark.webm new file mode 100644 index 00000000000..0afe383b78b Binary files /dev/null and b/public/images/intro_dark.webm differ diff --git a/src/loading-scene.ts b/src/loading-scene.ts index e81005ec8cf..d085195fdab 100644 --- a/src/loading-scene.ts +++ b/src/loading-scene.ts @@ -23,7 +23,7 @@ export class LoadingScene extends SceneBase { this.load['cacheBuster'] = buildIdMatch[1]; } - this.load.video('intro_dark', 'images/intro_dark.mp4', true); + this.load.video('intro_dark', 'images/intro_dark.webm', true); this.loadImage('loading_bg', 'arenas'); this.loadImage('logo', ''); diff --git a/src/plugins/cache-busted-loader-plugin.ts b/src/plugins/cache-busted-loader-plugin.ts index e1ee78709df..bce34c24348 100644 --- a/src/plugins/cache-busted-loader-plugin.ts +++ b/src/plugins/cache-busted-loader-plugin.ts @@ -1,7 +1,5 @@ let cacheBuster = ''; -const ignoredFiles = [ 'intro_dark' ]; - export default class CacheBustedLoaderPlugin extends Phaser.Loader.LoaderPlugin { constructor(scene: Phaser.Scene) { super(scene) @@ -19,8 +17,7 @@ export default class CacheBustedLoaderPlugin extends Phaser.Loader.LoaderPlugin if (!Array.isArray(file)) file = [ file ]; - if (!ignoredFiles.includes(file?.key) && cacheBuster) - file.forEach(item => item.url += '?v=' + cacheBuster); + file.forEach(item => item.url += '?v=' + cacheBuster); super.addFile(file); }