mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 01:56: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:
parent
ddee1e3bb5
commit
fcc3cab35f
9 changed files with 10 additions and 15 deletions
|
@ -28,7 +28,7 @@ export default {
|
|||
const btn = container.querySelector('#ffz-old-news-button');
|
||||
if ( btn )
|
||||
btn.addEventListener('click', () => {
|
||||
btn.parentElement.removeChild(btn);
|
||||
btn.remove();
|
||||
const old_news = container.querySelector('#ffz-old-news');
|
||||
if ( old_news )
|
||||
this.fetch(`${SERVER}/script/old_changes.html`, old_news);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue