document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. app.onactivated = function (args) {
  2.    if (args.detail.kind === activation.ActivationKind.launch) {
  3.         if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
  4.              // TODO: This application has been newly launched. Initialize
  5.             // your application here.
  6.         } else {
  7.             // TODO: This application has been reactivated from suspension.
  8.             // Restore application state here.
  9.         }
  10.         args.setPromise(WinJS.UI.processAll());
  11.     }
  12. };
');