Optimized

This commit is contained in:
Yosi Levy
2020-07-18 10:59:48 +03:00
parent 80bc6fda8b
commit 06c7b0b82e
2 changed files with 10 additions and 5 deletions

View File

@@ -9,5 +9,9 @@ export function computeRTL(hass: HomeAssistant) {
}
export function computeRTLDirection(hass: HomeAssistant) {
return computeRTL(hass) ? "rtl" : "ltr";
return emitRTLDirection(computeRTL(hass));
}
export function emitRTLDirection(rtl: boolean) {
return rtl ? "rtl" : "ltr";
}