Skip to content

Commit

Permalink
feat: ✨ 增加闭包
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatSheep committed Aug 12, 2024
1 parent fa62410 commit bf43357
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/speak/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ xml: false
{{<rawhtml>}}

<script>
const talker = new tgTalker({
(function () {
const talker = new tgTalker({
serverUrl: "https://tgtalk-api.hesiy.cn/",
selector: "#iTalk",
zoom: true,
Expand All @@ -46,6 +47,7 @@ const talker = new tgTalker({
},
});
talker.init()
})();
</script>

{{</rawhtml>}}

0 comments on commit bf43357

Please sign in to comment.