aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/Recipe.ts
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2024-05-04 06:21:46 +0100
committerLibravatar GitHub <noreply@github.com>2024-05-04 10:51:46 +0530
commit3274625fa309362073a7808490e5d0a3e34b2df6 (patch)
treea0b82ba9507eed6945d076b27f3e48aeea8aeb55 /src/models/Recipe.ts
parent6.7.4-nightly.3 [skip ci] (diff)
downloadferdium-app-3274625fa309362073a7808490e5d0a3e34b2df6.tar.gz
ferdium-app-3274625fa309362073a7808490e5d0a3e34b2df6.tar.zst
ferdium-app-3274625fa309362073a7808490e5d0a3e34b2df6.zip
chore: change icons to reduce bundle (#1740)
* Made the sleep in millis more explicit
Diffstat (limited to 'src/models/Recipe.ts')
-rw-r--r--src/models/Recipe.ts5
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
31export interface IRecipe { 32export 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>(