mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-10-29 10:30:35 -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 ctrl = document.querySelector(`div[data-vscid="${id}"]`)
|
||||
if (ctrl) {
|
||||
node.classList.remove('vsc-initialized');
|
||||
ctrl.remove();
|
||||
}
|
||||
node.classList.remove('vsc-initialized');
|
||||
delete node.dataset['vscid'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user