Merge pull request #152 from force1267/master

Update isRTL helper
This commit is contained in:
Eduardo Gómez 2020-03-29 13:37:04 +02:00 committed by GitHub
commit 3d2086cc7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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') => {