mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-22 02:18:45 -04:00
Remove vscid even if ctrl is not found
This commit is contained in:

committed by
Ilya Grigorik

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