fix close modal

This commit is contained in:
Pete Matsyburka committed 2026-10-16 19:56:36 +03:00
1 parent f14458f238
commit 09b93067f4
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ export default class extends HTMLElement {
}
async flashFrom (fetchResponse) {
const html = await fetchResponse?.responseHTML
const html = await fetchResponse?.responseHTML.catch(() => null)
const flash = html && new DOMParser().parseFromString(html, 'text/html').getElementById('native_flash')
if (flash?.dataset.alert) return { alert: flash.dataset.alert }