|
@@ -1,4 +1,4 @@
|
|
|
-/*global tarteaucitron, ga, Shareaholic, stLight, clicky, top, google, Typekit, FB, ferankReady, IN, stButtons, twttr*/
|
|
|
+/*global tarteaucitron, ga, Shareaholic, stLight, clicky, top, google, Typekit, FB, ferankReady, IN, stButtons, twttr, PCWidget*/
|
|
|
/*jslint regexp: true, nomen: true*/
|
|
|
|
|
|
// addthis
|
|
@@ -889,6 +889,28 @@ tarteaucitron.services.pubdirecte = {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+// purechat
|
|
|
+tarteaucitron.services.purechat = {
|
|
|
+ "key": "purechat",
|
|
|
+ "type": "support",
|
|
|
+ "name": "PureChat",
|
|
|
+ "uri": "https://www.purechat.com/privacy",
|
|
|
+ "needConsent": true,
|
|
|
+ "cookies": [],
|
|
|
+ "js": function () {
|
|
|
+ "use strict";
|
|
|
+ if (tarteaucitron.user.purechatId === undefined) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ tarteaucitron.addScript('//app.purechat.com/VisitorWidget/WidgetScript', '', function () {
|
|
|
+ try {
|
|
|
+ window.w = new PCWidget({ c: tarteaucitron.user.purechatId, f: true });
|
|
|
+ } catch (e) {}
|
|
|
+ });
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
// shareaholic
|
|
|
tarteaucitron.services.shareaholic = {
|
|
|
"key": "shareaholic",
|