This commit is contained in:
2025-10-04 16:11:35 +08:00
parent af697e8cb0
commit 0e952773ed
15 changed files with 440 additions and 206 deletions

View File

@@ -29,7 +29,13 @@ script.
const triggerPjaxFn = (val) => {
if (!val) return
Object.values(val).forEach(fn => fn())
Object.values(val).forEach(fn => {
try {
fn()
} catch (err) {
console.debug('Pjax callback failed:', err)
}
})
}
document.addEventListener('pjax:send', () => {