tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

har-builder-utils.js (637B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 /**
      8 * Currently supported HAR version.
      9 */
     10 const HAR_VERSION = "1.2";
     11 
     12 function buildHarLog(appInfo) {
     13  return {
     14    log: {
     15      version: HAR_VERSION,
     16      creator: {
     17        name: appInfo.name,
     18        version: appInfo.version,
     19      },
     20      browser: {
     21        name: appInfo.name,
     22        version: appInfo.version,
     23      },
     24      pages: [],
     25      entries: [],
     26    },
     27  };
     28 }
     29 
     30 exports.buildHarLog = buildHarLog;