1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-30 09:50:55 +00:00

node.remove() exists, so why have I been doing node.parentElement.removeChild(node). I am literally the worst.

This commit is contained in:
SirStendec 2017-12-01 15:36:18 -05:00
parent ddee1e3bb5
commit fcc3cab35f
9 changed files with 10 additions and 15 deletions

View file

@ -126,7 +126,7 @@ export class ManagedStyle {
}
destroy() {
document.head.removeChild(this._style);
this._style.remove();
this._blocks = null;
this._style = null;
}