make code prettier

pull/176/head
Aevann 2023-08-03 13:40:33 +03:00
parent 7589238f6a
commit fef1f9b52a
1 changed files with 3 additions and 1 deletions

View File

@ -598,7 +598,9 @@ if (screen_width <= 768) {
window.addEventListener('hashchange', (e) => {
if (e.oldURL.includes('#m-')) {
bootstrap.Modal.getInstance(document.getElementById(e.oldURL.split('#m-')[1])).hide()
const modal_id = e.oldURL.split('#m-')[1]
const modal = document.getElementById(modal_id)
bootstrap.Modal.getInstance(modal).hide()
}
});
}