Skip to content

Commit 7238e7d

Browse files
Deeksha1502Copilot
andauthored
Added a null check
Co-authored-by: Copilot <[email protected]>
1 parent 69c7488 commit 7238e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

player/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
if (globalConfig?.config?.dir === 'rtl') {
113113
document.body.setAttribute('dir', 'rtl');
114114
}
115-
else if(window.parent.ecEditor.getConfig('dir')){
115+
else if(window.parent.ecEditor && typeof window.parent.ecEditor.getConfig === 'function' && window.parent.ecEditor.getConfig('dir')){
116116
document.body.setAttribute('dir', window.parent.ecEditor.getConfig('dir'));
117117
}
118118
else {

0 commit comments

Comments
 (0)