diff options
Diffstat (limited to 'src/models/Recipe.ts')
-rw-r--r-- | src/models/Recipe.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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 { | |||
26 | message?: string; | 26 | message?: string; |
27 | allowFavoritesDelineationInUnreadCount?: boolean; | 27 | allowFavoritesDelineationInUnreadCount?: boolean; |
28 | }; | 28 | }; |
29 | defaultIcon: string; | ||
29 | } | 30 | } |
30 | 31 | ||
31 | export interface IRecipe { | 32 | export interface IRecipe { |
@@ -49,6 +50,7 @@ export interface IRecipe { | |||
49 | path: string; | 50 | path: string; |
50 | partition: string; | 51 | partition: string; |
51 | local: boolean; | 52 | local: boolean; |
53 | defaultIcon: string; | ||
52 | 54 | ||
53 | readonly overrideUserAgent?: () => string; | 55 | readonly overrideUserAgent?: () => string; |
54 | 56 | ||
@@ -76,6 +78,8 @@ export default class Recipe implements IRecipe { | |||
76 | 78 | ||
77 | version = ''; | 79 | version = ''; |
78 | 80 | ||
81 | defaultIcon = ''; | ||
82 | |||
79 | // Removing this specific type will cause a typescript error | 83 | // Removing this specific type will cause a typescript error |
80 | // even while it's the exact same as the interface | 84 | // even while it's the exact same as the interface |
81 | aliases: string[] = []; | 85 | aliases: string[] = []; |
@@ -135,6 +139,7 @@ export default class Recipe implements IRecipe { | |||
135 | // from the recipe | 139 | // from the recipe |
136 | this.id = ifUndefined<string>(data.id, this.id); | 140 | this.id = ifUndefined<string>(data.id, this.id); |
137 | this.name = ifUndefined<string>(data.name, this.name); | 141 | this.name = ifUndefined<string>(data.name, this.name); |
142 | this.defaultIcon = ifUndefined<string>(data.defaultIcon, this.defaultIcon); | ||
138 | this.version = ifUndefined<string>(data.version, this.version); | 143 | this.version = ifUndefined<string>(data.version, this.version); |
139 | this.aliases = ifUndefined<string[]>(data.aliases, this.aliases); | 144 | this.aliases = ifUndefined<string[]>(data.aliases, this.aliases); |
140 | this.serviceURL = ifUndefined<string>( | 145 | this.serviceURL = ifUndefined<string>( |