mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 19:20:53 +08:00
19 lines
461 B
Plaintext
19 lines
461 B
Plaintext
script.
|
|
(() => {
|
|
function loadWaline () {
|
|
function initWaline () {
|
|
let initData = {
|
|
el: null,
|
|
serverURL: '!{theme.waline.serverURL}',
|
|
}
|
|
|
|
const waline = new Waline(initData)
|
|
}
|
|
|
|
if (typeof Waline === 'function') initWaline()
|
|
else getScript('!{url_for(theme.CDN.waline)}').then(initWaline)
|
|
}
|
|
|
|
window.pjax ? loadWaline() : window.addEventListener('load', loadWaline)
|
|
})()
|