mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-22 02:18:45 -04:00
drop initialization flag on removed node
If the node is reattached later we want to rerun the initialization logic to rebuild the controller. Closes #135.
This commit is contained in:
@@ -225,6 +225,7 @@ 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user