Also remove className regardless of ctrl

This commit is contained in:
Roly Fentanes
2017-10-01 15:29:59 -04:00
committed by Ilya Grigorik
parent 1004348a47
commit 194fcc1076

View File

@@ -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'];
}
}