network-events.js (566B)
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 const { 8 getUrlDetails, 9 // eslint-disable-next-line mozilla/reject-some-requires 10 } = require("resource://devtools/client/netmonitor/src/utils/request-utils.js"); 11 12 module.exports = function ({ resource }) { 13 resource.urlDetails = getUrlDetails(resource.url); 14 resource.startedMs = Date.parse(resource.startedDateTime); 15 return resource; 16 };