From 8df31656038e0c9f330cc20cd3c63bb6cf66c5f5 Mon Sep 17 00:00:00 2001 From: XPoet Date: Mon, 26 Apr 2021 17:35:58 +0800 Subject: [PATCH] chore(pjax): modified name of the PJAX variable --- layout/_partial/pjax/pjax.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_partial/pjax/pjax.ejs b/layout/_partial/pjax/pjax.ejs index d13da7b..006c688 100644 --- a/layout/_partial/pjax/pjax.ejs +++ b/layout/_partial/pjax/pjax.ejs @@ -23,7 +23,7 @@ document.addEventListener('pjax:complete', () => { KEEP.utils.pjaxProgressBarEnd(); - pjax.executeScripts(document.querySelectorAll('script[data-pjax], .pjax script')); + window.pjax.executeScripts(document.querySelectorAll('script[data-pjax], .pjax script')); KEEP.refresh(); }); });