super-media-element
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "super-media-element", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Helps you create a custom element w/ a HTMLMediaElement API.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -58,3 +58,3 @@ /** | ||
const template = document?.createElement('template'); | ||
const template = globalThis.document?.createElement('template'); | ||
if (template) { | ||
@@ -433,4 +433,4 @@ template.innerHTML = ` | ||
export const SuperVideoElement = document && SuperMediaMixin(HTMLElement, { tag: 'video' }); | ||
export const SuperVideoElement = globalThis.document ? SuperMediaMixin(HTMLElement, { tag: 'video' }) : class {}; | ||
export const SuperAudioElement = document && SuperMediaMixin(HTMLElement, { tag: 'audio' }); | ||
export const SuperAudioElement = globalThis.document ? SuperMediaMixin(HTMLElement, { tag: 'audio' }) : class {}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17611