mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
Removes unused variable
This commit is contained in:
parent
3a35d33042
commit
5e9b8eb571
1 changed files with 3 additions and 3 deletions
|
@ -80,7 +80,7 @@ let StatusCache = new class {
|
|||
}
|
||||
this.submitStatusSuccess(form);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch(_ => {
|
||||
this.announceMessage('status-error-message');
|
||||
});
|
||||
}
|
||||
|
@ -93,14 +93,14 @@ let StatusCache = new class {
|
|||
*/
|
||||
announceMessage(message_id) {
|
||||
const element = document.getElementById(message_id);
|
||||
let copy = element.cloneNode(true)
|
||||
let copy = element.cloneNode(true);
|
||||
|
||||
copy.id = null;
|
||||
element.insertAdjacentElement('beforebegin', copy);
|
||||
|
||||
BookWyrm.addRemoveClass(copy, 'is-hidden', false);
|
||||
setTimeout(function() {
|
||||
copy.remove()
|
||||
copy.remove();
|
||||
}, 10000, copy);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue