function dumpAsJson() {
    var json = JSON.stringify(
        {offlinePages: offlinePages, savePageRequests: savePageRequests},
        function(key, value) {
          return key.endsWith('Time') ? new Date(value).toString() : value;
        },
        2);

    $('dump-box').value = json;
    $('dump-info').textContent = '';
    $('dump-modal').showModal();
    $('dump-box').select();
  }
/**
   * Downloads all the stored page and request queue information into a file.
   * Also translates all the fields representing datetime into human-readable
   * date strings.
   * TODO(chili): Create a CSV writer that can abstract out the line joining.
   */
Downloads all the stored page and request queue information into a file.
Also translates all the fields representing datetime into human-readable
date strings.
TODO(chili): Create a CSV writer that can abstract out the line joining.
Downloads all the stored page and request queue information into a file . Also translates all the fields representing datetime into human - readable date strings . TODO ( chili ) : Create a CSV writer that can abstract out the line joining .
function dumpAsJson() {
    var json = JSON.stringify(
        {offlinePages: offlinePages, savePageRequests: savePageRequests},
        function(key, value) {
          return key.endsWith('Time') ? new Date(value).toString() : value;
        },
        2);
    $('dump-box').value = json;
    $('dump-info').textContent = '';
    $('dump-modal').showModal();
    $('dump-box').select();
  }
function dumpAsJson ( ) { var json = JSON . stringify ( { offlinePages : offlinePages , savePageRequests : savePageRequests } , function ( key , value ) { return key . endsWith ( 'Time' ) ? new Date ( value ) . toString ( ) : value ; } , 2 ) ; $ ( 'dump-box' ) . value = json ; $ ( 'dump-info' ) . textContent = '' ; $ ( 'dump-modal' ) . showModal ( ) ; $ ( 'dump-box' ) . select ( ) ; }
Downloads all the stored page and request queue information into a file.
Downloads all the stored page and request queue information into a file .