2022-10-26 22:37:03 +08:00
|
|
|
/* LiveRe comment plugin */
|
|
|
|
NexT.plugins.comments.livere = function() {
|
2022-07-13 21:25:15 +08:00
|
|
|
const element = '#lv-container';
|
2022-10-24 22:08:17 +08:00
|
|
|
if (!NexT.CONFIG.livere
|
2022-07-13 21:25:15 +08:00
|
|
|
|| !NexT.utils.checkDOMExist(element)) return;
|
2022-05-21 17:47:26 +08:00
|
|
|
|
2022-10-24 22:08:17 +08:00
|
|
|
NexT.utils.lazyLoadComponent(element, function() {
|
2022-07-22 18:35:04 +08:00
|
|
|
NexT.utils.getScript(NexT.CONFIG.livere.js, {
|
2022-05-21 17:47:26 +08:00
|
|
|
attributes: {
|
|
|
|
async: true
|
2022-07-13 21:25:15 +08:00
|
|
|
},
|
|
|
|
parentNode: document.querySelector(element)
|
2022-05-21 17:47:26 +08:00
|
|
|
});
|
2022-07-13 21:25:15 +08:00
|
|
|
|
|
|
|
NexT.utils.hiddeLodingCmp(element);
|
2022-05-21 17:47:26 +08:00
|
|
|
});
|
2022-10-24 22:08:17 +08:00
|
|
|
}
|