This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mirrors analytics.js logic to validate autolinker param, and returns cid if valid. | |
// Returns false if autolinker param found, but invalid. | |
// Otherwise returns undefined. | |
var getCidFromAutolinker = function(str) { | |
var joiner = function (cidGid, offset) { | |
var a = new Date, | |
b = window.navigator, | |
c = b.plugins || []; | |
var d = [cidGid, b.userAgent, a.getTimezoneOffset(), a.getYear(), a.getDate(), a.getHours(), a.getMinutes() + offset]; |
OlderNewer