Refactoring the comments component js scripts.

This commit is contained in:
凡梦星尘
2022-10-24 22:08:17 +08:00
parent b9511728f3
commit 90df1e1247
9 changed files with 79 additions and 80 deletions

View File

@@ -1,4 +1,15 @@
if (!window.NexT) window.NexT = {};
/* global NexT, boot, CONFIG */
window.NexT = {};
NexT.boot = {};
NexT.comments = {};
NexT.comments.register = function() {
if (!NexT.CONFIG.page.comments) return;
for(var c in NexT.comments) {
if (c === 'register') continue;
eval('NexT.comments.'+c)();
};
};
(function() {
const className = 'next-config';