FIX: ensures we have an elementFromPoint before using it (#7583)
This commit is contained in:
parent
e8de30939d
commit
0ed1cfd8d9
|
@ -72,7 +72,11 @@ export default MountWidget.extend({
|
|||
|
||||
// We use this because watching videos fullscreen in Chrome was super buggy
|
||||
// otherwise. Thanks to arrendek from q23 for the technique.
|
||||
if (document.elementFromPoint(0, 0).tagName.toUpperCase() === "IFRAME") {
|
||||
const topLeftCornerElement = document.elementFromPoint(0, 0);
|
||||
if (
|
||||
topLeftCornerElement &&
|
||||
topLeftCornerElement.tagName.toUpperCase() === "IFRAME"
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue