Last active
March 24, 2020 21:34
-
-
Save pboling/94200093e8a94283a81b2d923921c0b7 to your computer and use it in GitHub Desktop.
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
var isDev = false; | |
if (window.__env.NODE_ENV === 'development') { | |
isDev = true; | |
} | |
if (isDev) { | |
var MixpanelMock; | |
MixpanelMock = (function() { | |
function MixpanelMock() { | |
this.init = function() { | |
console.log("mixpanel.init", arguments); | |
} | |
this.track = function() { | |
console.log("mixpanel.track", arguments); | |
} | |
} | |
return MixpanelMock; | |
})(); | |
window.mixpanel = new MixpanelMock(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the gist! very helpful