Skip to content

Commit

Permalink
Ensure that background is specified when Windows icon is generated
Browse files Browse the repository at this point in the history
  • Loading branch information
andy128k committed Oct 22, 2022
1 parent 07ae211 commit 28828b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platforms/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export class WindowsPlatform extends Platform {
options,
uniformIconOptions(options, options.icons.windows, ICONS_OPTIONS)
);
if (!this.options.background) {
throw new Error("`background` is required for Windows icons");
}
}

override async createFiles(): Promise<FaviconFile[]> {
Expand Down

0 comments on commit 28828b1

Please sign in to comment.