mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17:47 +00:00
Fix Hardware Images when in Dark Mode
This commit is contained in:
parent
9324061d05
commit
0d7474273f
@ -19,8 +19,8 @@ export const brandsUrl = (options: BrandsOptions): string =>
|
|||||||
|
|
||||||
export const hardwareBrandsUrl = (options: HardwareBrandsOptions): string =>
|
export const hardwareBrandsUrl = (options: HardwareBrandsOptions): string =>
|
||||||
`https://brands.home-assistant.io/hardware/${options.category}/${
|
`https://brands.home-assistant.io/hardware/${options.category}/${
|
||||||
options.darkOptimized ? "dark_" : ""
|
options.manufacturer
|
||||||
}${options.manufacturer}${options.model ? `_${options.model}` : ""}.png`;
|
}${options.model ? `_${options.model}` : ""}.png`;
|
||||||
|
|
||||||
export const extractDomainFromBrandUrl = (url: string) => url.split("/")[4];
|
export const extractDomainFromBrandUrl = (url: string) => url.split("/")[4];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user