Skip to content

Instantly share code, notes, and snippets.

@nickpelton
Created September 18, 2014 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickpelton/8473199cc1bcb2419ef3 to your computer and use it in GitHub Desktop.
Save nickpelton/8473199cc1bcb2419ef3 to your computer and use it in GitHub Desktop.
TrackJS ignore Chrome browser extensions
window._trackJs = {
onError: function (payload){
if(payload.file.indexOf("chrome://") !== -1){ return false; } // many extensions have a source file of chrome://some/extension/path.js
return true;
}
// other stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment