Explorar o código

Add snapchatMore initialization

Required to add custom events.
Website documentation should be updated @AmauriC
Simon %!s(int64=2) %!d(string=hai) anos
pai
achega
707c1b9606
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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();
+        }
     }
 };