Fixed video player

This commit is contained in:
Hadi Charara 2022-07-05 19:58:02 -04:00
parent 186ef937a5
commit 8488f48f99
5 changed files with 17 additions and 11 deletions

View file

@ -43,6 +43,16 @@ import { currentSettings as userSettings } from './settings/userSettings';
return isRTL;
}
export function getElementIsRTL(element) {
let elementIsRTL = false;
if (window.getComputedStyle) { // all browsers
elementIsRTL = window.getComputedStyle(element, null).getPropertyValue('direction') == 'rtl';
} else {
elementIsRTL = element.currentStyle.direction == 'rtl'; // IE5-8
}
return elementIsRTL;
}
export function updateCurrentCulture() {
let culture;
try {
@ -271,7 +281,8 @@ export default {
getCurrentDateTimeLocale,
register,
updateCurrentCulture,
getIsRTL
getIsRTL,
getElementIsRTL
};
/* eslint-enable indent */