forked from mirrors/bookwyrm
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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue