Skip to content

Instantly share code, notes, and snippets.

@Aaronontheweb
Created August 21, 2012 08:03
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 Aaronontheweb/3413352 to your computer and use it in GitHub Desktop.
Save Aaronontheweb/3413352 to your computer and use it in GitHub Desktop.
Last-chance exception handling code in WinJS (with MarkedUp)
(function () {
"use strict";
var app = WinJS.Application;
var activation = Windows.ApplicationModel.Activation;
var nav = WinJS.Navigation;
WinJS.strictProcessing();
app.onerror = function (error) {
//Log the last-chance exception (as a crash)
MK.logLastChanceException(error);
};
/* rest of the WinJS app event handlers and methods */
app.start();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment