diff --git a/inject.js b/inject.js index 0fa147d2..92c740b3 100644 --- a/inject.js +++ b/inject.js @@ -227,6 +227,7 @@ 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(); } }