⚡ Improve page scripts configuration files.
This commit is contained in:
6
assets/js/third-party/comments/livere.js
vendored
6
assets/js/third-party/comments/livere.js
vendored
@@ -1,12 +1,12 @@
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
const element = '#lv-container';
|
||||
if (!NexT.CONFIG.comments.enable
|
||||
|| !NexT.CONFIG.livere
|
||||
if (!NexT.CONFIG.page.comments
|
||||
|| !NexT.CONFIG.page.livere
|
||||
|| !NexT.utils.checkDOMExist(element)) return;
|
||||
|
||||
NexT.utils.loadComments(element).then(() => {
|
||||
NexT.utils.getScript(NexT.CONFIG.livere.js, {
|
||||
NexT.utils.getScript(NexT.CONFIG.page.livere.js, {
|
||||
attributes: {
|
||||
async: true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user