Use script to control comments container show.

This commit is contained in:
凡梦星尘
2022-07-22 18:35:04 +08:00
parent 31f6e21671
commit d42375820d
11 changed files with 97 additions and 95 deletions

View File

@@ -2,11 +2,11 @@ document.addEventListener('DOMContentLoaded', () => {
const element = '#lv-container';
if (!NexT.CONFIG.page.comments
|| !NexT.CONFIG.page.livere
|| !NexT.CONFIG.livere
|| !NexT.utils.checkDOMExist(element)) return;
NexT.utils.loadComments(element).then(() => {
NexT.utils.getScript(NexT.CONFIG.page.livere.js, {
NexT.utils.getScript(NexT.CONFIG.livere.js, {
attributes: {
async: true
},