Skip to content

Instantly share code, notes, and snippets.

@PanosJee
Created November 27, 2012 15:46
Show Gist options
  • Save PanosJee/4154955 to your computer and use it in GitHub Desktop.
Save PanosJee/4154955 to your computer and use it in GitHub Desktop.
WinJS bugsense initialization
// Create the app
var app = WinJS.Application;
// Initialize bugsense
var bugsense = new Bugsense( {
apiKey: 'YOUR_API_KEY',
context: app
} );
// If you want to display a popup (against MS guidelines) add the message option
var bugsense = new Bugsense( {
apiKey: 'YOUR_API_KEY',
context: app,
message: 'Sorry for the inconvenience. We have been notified about the error'
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment