mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-13 22:41:57 +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:
parent
ddee1e3bb5
commit
fcc3cab35f
9 changed files with 10 additions and 15 deletions
|
@ -126,7 +126,7 @@ export class ManagedStyle {
|
|||
}
|
||||
|
||||
destroy() {
|
||||
document.head.removeChild(this._style);
|
||||
this._style.remove();
|
||||
this._blocks = null;
|
||||
this._style = null;
|
||||
}
|
||||
|
|
|
@ -291,10 +291,7 @@ export class Tooltip {
|
|||
}
|
||||
|
||||
if ( tip.outer ) {
|
||||
const o = tip.outer;
|
||||
if ( o.parentElement )
|
||||
o.parentElement.removeChild(o);
|
||||
|
||||
tip.outer.remove();
|
||||
tip.outer = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue