/**
 * Listens for the app launching then creates the window.
 * Ignores the provided window size.
 *
 * @see http://developer.chrome.com/trunk/apps/app.window.html
 */

function initPage() {
  addActionButton('Attach onSuspend', function() {
    var buttonTime = new Date();
    chrome.runtime.onSuspend.addListener(function() {
      var callbackTime = new Date();
      log('onSuspend fired: ' + (callbackTime - buttonTime) + 'ms after button');
    });
  });
}


@@ -456,11 +456,104 @@
 ;%0A  %7D);%0A
+  addActionButton('chrome.runtime.reload()', function() %7B%0A    chrome.runtime.reload();%0A  %7D);%0A
 %7D%0A%0A

Add a button that calls chrome.runtime.reload()