提交 6637fbee 编写于 作者: R rsercano

resolves #338

上级 a329cabf
......@@ -54,10 +54,12 @@ Template.mainLayout.rendered = function () {
let settings = this.subscribe('settings');
let initializedLiveChat = false;
this.autorun(() => {
if (settings.ready()) {
const foundSettings = Settings.findOne();
if (foundSettings && foundSettings.showLiveChat) {
if (foundSettings && foundSettings.showLiveChat && !initializedLiveChat) {
initializedLiveChat = true;
liveChatFunc(window, window.nudgespot || []);
window.nudgespot.init("748ae792d632f6c5e14ad610e53ef745");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册