pull/1/head
Jan Umbach 2024-05-31 11:06:52 +02:00
parent 09a5dac6d2
commit 8d466524c3
1 changed files with 1 additions and 11 deletions

View File

@ -59,17 +59,7 @@
console.error('No video element found');
// create observer to watch for new video elements
const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
mutation.addedNodes.forEach(function(node) {
if (node.classList && node.classList.contains('shx-video-card-product')) {
this.connectedCallback();
console.log('new video added', node);
}
}.bind(this));
}.bind(this));
}.bind(this));
setTimeout(this.connectedCallback, 1000);
return;
}