Update isRTL helper

This commit is contained in:
force 2020-03-27 03:47:47 +04:30
parent 7f25b689da
commit 47b3f7b1cb

View file

@ -1,6 +1,6 @@
export const isRTL = () => {
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') => {