mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
Also remove className regardless of ctrl
This commit is contained in:

committed by
Ilya Grigorik

parent
1004348a47
commit
194fcc1076
@@ -269,9 +269,9 @@ chrome.extension.sendMessage({}, function(response) {
|
|||||||
let id = node.dataset['vscid'];
|
let id = node.dataset['vscid'];
|
||||||
let ctrl = document.querySelector(`div[data-vscid="${id}"]`)
|
let ctrl = document.querySelector(`div[data-vscid="${id}"]`)
|
||||||
if (ctrl) {
|
if (ctrl) {
|
||||||
node.classList.remove('vsc-initialized');
|
|
||||||
ctrl.remove();
|
ctrl.remove();
|
||||||
}
|
}
|
||||||
|
node.classList.remove('vsc-initialized');
|
||||||
delete node.dataset['vscid'];
|
delete node.dataset['vscid'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user