@glomex/glomex-dialog
Advanced tools
Comparing version 1.15.4 to 1.15.5
{ | ||
"name": "@glomex/glomex-dialog", | ||
"version": "1.15.4", | ||
"version": "1.15.5", | ||
"description": "A dialog web component that allows docking a video player or putting it in a lightbox", | ||
@@ -5,0 +5,0 @@ "type": "module", |
// when bundled for IE window.EventTarget could be undefined | ||
// and extending "RotateToFullscreen" with "undefined" would lead to | ||
// a failing bundled file | ||
const EventTarget = window.EventTarget || Object; | ||
// only Safari 14 supports using EventTarget constructor | ||
let supportsEventTargetConstructor = false; | ||
try { | ||
new window.EventTarget(); | ||
supportsEventTargetConstructor = true; | ||
} catch(e) { | ||
// ignore | ||
} | ||
const EventTarget = supportsEventTargetConstructor | ||
? window.EventTarget | ||
: Object; | ||
/** | ||
@@ -7,0 +19,0 @@ * Handles <glomex-dialog rotate-to-fullscreen> |
119933
1177