Skip to content

Instantly share code, notes, and snippets.

View thatsjonsense's full-sized avatar

Jon Noronha thatsjonsense

View GitHub Profile
@thatsjonsense
thatsjonsense / activate.js
Created September 6, 2016 20:31
Reactivate Optimizely on push state
if (!history.onpushstate) {
(function(history){
var pushState = history.pushState;
history.pushState = function(state) {
if (typeof history.onpushstate == "function") {
history.onpushstate({state: state});
}
return pushState.apply(history, arguments);
}
This file has been truncated, but you can view the full file.
{
"timerange": {
"begin": "2015-12-16T10:00:00-10:00",
"end": "2016-04-04T10:00:00-10:00"
},
"flooredTimerange": {
"begin": "2015-12-16T00:00:00+00:00",
"end": "2016-04-04T00:00:00+00:00"
},
"audiences": [