diff --git a/CHANGELOG.md b/CHANGELOG.md index d12fc210..c1443f80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed ### Added - Redesign the video selection panel to be more performant and useful. +- [Issue 538](https://github.com/aza547/wow-recorder/issues/538) - Pro users can now use a gif as their custom chat overlay. ### Fixed - Fix an issue where the upload/download icons would flicker. diff --git a/src/main/Manager.ts b/src/main/Manager.ts index 97589a0f..f1973937 100644 --- a/src/main/Manager.ts +++ b/src/main/Manager.ts @@ -795,9 +795,12 @@ export default class Manager { throw new Error('Overlay image was not provided for custom overlay.'); } - if (!chatOverlayOwnImagePath.endsWith('.png')) { - console.warn('[Manager] Overlay image must be a PNG file'); - throw new Error('Overlay image must be a PNG file'); + if ( + !chatOverlayOwnImagePath.endsWith('.png') && + !chatOverlayOwnImagePath.endsWith('.gif') + ) { + console.warn('[Manager] Overlay image must be a .png or .gif file'); + throw new Error('Overlay image must be a .png or .gif file'); } const fileExists = await exists(chatOverlayOwnImagePath);