From 3274625fa309362073a7808490e5d0a3e34b2df6 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Sat, 4 May 2024 06:21:46 +0100 Subject: chore: change icons to reduce bundle (#1740) * Made the sleep in millis more explicit --- src/models/Recipe.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/models/Recipe.ts') diff --git a/src/models/Recipe.ts b/src/models/Recipe.ts index 11eb1884f..87043693b 100644 --- a/src/models/Recipe.ts +++ b/src/models/Recipe.ts @@ -26,6 +26,7 @@ interface RecipeData { message?: string; allowFavoritesDelineationInUnreadCount?: boolean; }; + defaultIcon: string; } export interface IRecipe { @@ -49,6 +50,7 @@ export interface IRecipe { path: string; partition: string; local: boolean; + defaultIcon: string; readonly overrideUserAgent?: () => string; @@ -76,6 +78,8 @@ export default class Recipe implements IRecipe { version = ''; + defaultIcon = ''; + // Removing this specific type will cause a typescript error // even while it's the exact same as the interface aliases: string[] = []; @@ -135,6 +139,7 @@ export default class Recipe implements IRecipe { // from the recipe this.id = ifUndefined(data.id, this.id); this.name = ifUndefined(data.name, this.name); + this.defaultIcon = ifUndefined(data.defaultIcon, this.defaultIcon); this.version = ifUndefined(data.version, this.version); this.aliases = ifUndefined(data.aliases, this.aliases); this.serviceURL = ifUndefined( -- cgit v1.2.3-54-g00ecf