mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
fix close modal
This commit is contained in:
1 parent
f14458f238
commit
09b93067f4
1 file changed
+1
-1
@@ -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 }
|
||||
|
||||
Reference in new issue
Block a user