mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-17 02:16:54 +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
|
@ -121,7 +121,7 @@ export default class MainMenu extends Module {
|
|||
main.classList.remove('ffz-has-menu');
|
||||
|
||||
if ( this._menu ) {
|
||||
main.removeChild(this._menu);
|
||||
this._menu.remove();
|
||||
this._vue.$destroy();
|
||||
this._menu = this._vue = null;
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ export default class MainMenu extends Module {
|
|||
else
|
||||
old_main.classList.remove('ffz-has-menu');
|
||||
|
||||
old_main.removeChild(this._menu);
|
||||
this._menu.remove();
|
||||
main.appendChild(this._menu);
|
||||
|
||||
this._vue.$children[0].maximized = maximized;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue