浏览代码

fix: make comment module "Artalk" work with newer versions (#6901)

* feat: update comment module "Artalk"
* fix: update code.yml

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
CDN 1 年之前
父节点
当前提交
f1161aed59
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/modules/comments/artalk/code.yml

+ 1 - 1
server/modules/comments/artalk/code.yml

@@ -6,7 +6,7 @@ head: |
 body: |
   <script>
     window.onload = function() {
-      new Artalk({
+      Artalk.init({
         el:        '#artalk-container',
         pageKey:   '{{pageId}}',
         pageTitle: '',