fix: 修復 pjax 下, waline js 會重複加載的 bug

This commit is contained in:
Jerry committed 2023-01-15 01:39:16 +08:00
1 parent 9a3b41912a
commit 929a5608d3
12 files changed
+59 -45

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ script.
})
}
if (typeof Waline === 'function') loadWaline()
if (typeof Waline === 'object') loadWaline()
else getScript('!{url_for(theme.asset.waline_js)}').then(loadWaline)
}