Update isRTL helper
This commit is contained in:
parent
7f25b689da
commit
47b3f7b1cb
|
@ -1,6 +1,6 @@
|
||||||
export const isRTL = () => {
|
export const isRTL = () => {
|
||||||
const $html = document.querySelector('html')
|
const $html = document.querySelector('html')
|
||||||
return $html.getAttribute('lang') === 'ar' || $html.getAttribute('lang') === 'he'
|
return ['ar', 'he', 'fa'].includes($html.getAttribute('lang'))
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isMobile = (width = '768px') => {
|
export const isMobile = (width = '768px') => {
|
||||||
|
|
Loading…
Reference in a new issue