1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-15 01:34:23 +02:00

fix: make compatible with chrome 53 (#8354)

This commit is contained in:
mister-ben
2023-07-12 19:43:17 +02:00
committed by GitHub
parent 8dd98f602b
commit c66bf4023f
7 changed files with 19 additions and 9 deletions

View File

@ -23,4 +23,7 @@ export class TestCustomElement extends HTMLElement {
}
}
window.customElements.define('test-custom-element', TestCustomElement);
// Not supported on Chrome < 54
if ('customElements' in window) {
window.customElements.define('test-custom-element', TestCustomElement);
}