1function scrubAnalyticsPayload(type, payload) { 2 if (payload.url) { 3 try { 4 const url = new URL(payload.url, location.origin); 5 url.searchParams.delete('serial'); 6 payload.url = url.pathname + url.search + url.hash; 7 } catch (error) {} 8 } 9 10 if (payload.referrer) { 11 try { 12 const referrer = new URL(payload.referrer); 13 referrer.searchParams.delete('serial'); 14 payload.referrer = referrer.toString(); 15 } catch (error) {} 16 } 17 18 return payload; 19}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.