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.                 // Add privacy policy to settings charm
  5.                 WinJS.Application.onsettings = function (e) {
  6.                     e.detail.applicationcommands = { "help": { title: "Privacy policy", href: "privacy.html" } };
  7.                     WinJS.UI.SettingsFlyout.populateSettings(e);
  8.                 };
  9.             } else {
  10.                 // TODO: This application has been reactivated from suspension.
  11.                 // Restore application state here.
  12.             }
  13.             args.setPromise(WinJS.UI.processAll());
  14.         }
  15.     };
');