Skip to content

Commit

Permalink
fixes #538
Browse files Browse the repository at this point in the history
  • Loading branch information
aza547 committed Nov 30, 2024
1 parent 133604a commit 0869e20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 6 additions & 3 deletions src/main/Manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0869e20

Please sign in to comment.