Created
November 27, 2012 15:46
-
-
Save PanosJee/4154955 to your computer and use it in GitHub Desktop.
WinJS bugsense initialization
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
// 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