fix #1
This commit is contained in:
parent
c00916e62e
commit
ae4437fee7
|
|
@ -313,6 +313,16 @@ var tarteaucitron = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
},
|
||||||
|
"purge": function (arr) {
|
||||||
|
"use strict";
|
||||||
|
var i;
|
||||||
|
|
||||||
|
for (i = 0; i < arr.length; i += 1) {
|
||||||
|
document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/;';
|
||||||
|
document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname + ';';
|
||||||
|
document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname.split('.').slice(-2).join('.') + ';';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"getLanguage": function () {
|
"getLanguage": function () {
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,11 @@ tarteaucitron.services.sharethis = {
|
||||||
tarteaucitron.addScript(uri, '', function () {
|
tarteaucitron.addScript(uri, '', function () {
|
||||||
stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
|
stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
"fallback": function () {
|
||||||
|
"use strict";
|
||||||
|
var cookies = ['__unam'];
|
||||||
|
tarteaucitron.cookie.purge(cookies);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -54,6 +59,11 @@ tarteaucitron.services.shareaholic = {
|
||||||
Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
|
Shareaholic.init(tarteaucitron.user.shareaholicSiteId);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
"fallback": function () {
|
||||||
|
"use strict";
|
||||||
|
var cookies = ['__utma', '__utmb', '__utmc', '__utmz'];
|
||||||
|
tarteaucitron.cookie.purge(cookies);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -70,6 +80,11 @@ tarteaucitron.services.addthis = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId);
|
tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId);
|
||||||
|
},
|
||||||
|
"fallback": function () {
|
||||||
|
"use strict";
|
||||||
|
var cookies = ['__atuvc'];
|
||||||
|
tarteaucitron.cookie.purge(cookies);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -144,6 +159,11 @@ tarteaucitron.services.analytics = {
|
||||||
tarteaucitron.user.analyticsMore();
|
tarteaucitron.user.analyticsMore();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
"fallback": function () {
|
||||||
|
"use strict";
|
||||||
|
var cookies = ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmz'];
|
||||||
|
tarteaucitron.cookie.purge(cookies);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue