Created
August 21, 2012 08:03
-
-
Save Aaronontheweb/3413352 to your computer and use it in GitHub Desktop.
Last-chance exception handling code in WinJS (with MarkedUp)
This file contains 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
(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