@kinescope/vue-kinescope-player
Version:
Vue.js wrapper for Kinescope player
14 lines (13 loc) • 337 B
JavaScript
// polyfill for replaceChildren
(function () {
if (Node && Node.prototype.replaceChildren === undefined) {
Node.prototype.replaceChildren = function (addNodes) {
while (this.lastChild) {
this.removeChild(this.lastChild)
}
if (addNodes !== undefined) {
this.append(addNodes)
}
}
}
}())