mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix icon loading (#9289)
This commit is contained in:
parent
2d5ae78521
commit
0419c1a41f
@ -36,18 +36,16 @@ export const getIcon = (iconName: string) =>
|
||||
.then((icon) => resolve_(icon))
|
||||
.catch((e) => reject_(e));
|
||||
}
|
||||
})
|
||||
)
|
||||
.catch((e) => {
|
||||
// Firefox in private mode doesn't support IDB
|
||||
// Safari sometime doesn't open the DB so we time out
|
||||
for (const [, , reject_] of toRead) {
|
||||
reject_(e);
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
toRead = [];
|
||||
});
|
||||
})
|
||||
).catch((e) => {
|
||||
// Firefox in private mode doesn't support IDB
|
||||
// Safari sometime doesn't open the DB so we time out
|
||||
for (const [, , reject_] of toRead) {
|
||||
reject_(e);
|
||||
}
|
||||
toRead = [];
|
||||
});
|
||||
});
|
||||
|
||||
export const findIconChunk = (icon: string): string => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user