瀏覽代碼

Add snapchatMore initialization

Required to add custom events.
Website documentation should be updated @AmauriC
Simon 2 年之前
父節點
當前提交
707c1b9606
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tarteaucitron.services.js

+ 4 - 0
tarteaucitron.services.js

@@ -81,6 +81,10 @@ tarteaucitron.services.snapchat = {
         window.snaptr('track', 'PAGE_VIEW');
 
         tarteaucitron.addScript('https://sc-static.net/scevent.min.js');
+	    
+	if (typeof tarteaucitron.user.snapchatMore === 'function') {
+            tarteaucitron.user.snapchatMore();
+        }
     }
 };