Removes unused variable

This commit is contained in:
Mouse Reeve 2021-09-10 10:20:40 -07:00
parent 3a35d33042
commit 5e9b8eb571

View file

@ -80,7 +80,7 @@ let StatusCache = new class {
} }
this.submitStatusSuccess(form); this.submitStatusSuccess(form);
}) })
.catch(error => { .catch(_ => {
this.announceMessage('status-error-message'); this.announceMessage('status-error-message');
}); });
} }
@ -93,14 +93,14 @@ let StatusCache = new class {
*/ */
announceMessage(message_id) { announceMessage(message_id) {
const element = document.getElementById(message_id); const element = document.getElementById(message_id);
let copy = element.cloneNode(true) let copy = element.cloneNode(true);
copy.id = null; copy.id = null;
element.insertAdjacentElement('beforebegin', copy); element.insertAdjacentElement('beforebegin', copy);
BookWyrm.addRemoveClass(copy, 'is-hidden', false); BookWyrm.addRemoveClass(copy, 'is-hidden', false);
setTimeout(function() { setTimeout(function() {
copy.remove() copy.remove();
}, 10000, copy); }, 10000, copy);
} }