⚡ Use script to control comments container show.
This commit is contained in:
4
assets/js/third-party/comments/livere.js
vendored
4
assets/js/third-party/comments/livere.js
vendored
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user