This commit is contained in:
Jerry
2023-06-06 23:32:36 +08:00
parent 28d1744b9b
commit 5d52302a38
43 changed files with 431 additions and 387 deletions

View File

@@ -23,11 +23,10 @@ script.
})
}
if (typeof window.artalkItem === 'object') setTimeout(()=>{initArtalk()},200)
if (typeof window.artalkItem === 'object') initArtalk()
else {
getCSS('!{theme.asset.artalk_css}').then(()=>{
typeof Artalk !== 'function' ? getScript('!{theme.asset.artalk_js}').then(initArtalk)
: setTimeout(()=>{initArtalk()},200)
getScript('!{theme.asset.artalk_js}').then(initArtalk)
})
}
}