forked from rDrama/rDrama
1
0
Fork 0

try to fix "give award"

master
Aevann 2023-08-03 13:40:03 +03:00
parent 175a3df9a8
commit 7589238f6a
1 changed files with 3 additions and 4 deletions

View File

@ -596,10 +596,9 @@ if (screen_width <= 768) {
}
});
window.addEventListener('hashchange', () => {
if (!location.hash.startsWith("#m-")) {
const curr_modal = bootstrap.Modal.getInstance(document.getElementsByClassName('show')[0])
if (curr_modal) curr_modal.hide()
window.addEventListener('hashchange', (e) => {
if (e.oldURL.includes('#m-')) {
bootstrap.Modal.getInstance(document.getElementById(e.oldURL.split('#m-')[1])).hide()
}
});
}