IE issue fixed.

This commit is contained in:
Ján Jockusch 2019-05-06 11:25:28 +02:00
parent a00a08cb8d
commit 69f2901e66
1 changed files with 5 additions and 0 deletions

View File

@ -1206,6 +1206,11 @@ const UI = {
for (let i in iframes) {
if (iframes[i].contentDocument === document) {
doc_el = iframes[i];
// To use .body.msRequestFullscreen in IE, we need to
// set the document element accordingly.
// Note that the <iframe> must have the attribute
// "allowfullscreen" set for IE to allow the feature.
doc = iframes[i].contentDocument;
break;
}
}