MCPcopy Index your code
hub / github.com/ClearURLs/Addon / isDataURL

Function isDataURL

clearurls.js:713–717  ·  view source on GitHub ↗

* To prevent long loading on data urls * we will check here for data urls. * * @type {requestDetails} * @return {boolean}

(requestDetails)

Source from the content-addressed store, hash-verified

711 * @return {boolean}
712 */
713 function isDataURL(requestDetails) {
714 const s = requestDetails.url;
715
716 return s.substring(0, 4) === "data";
717 }
718
719 /**
720 * Call by each Request and checking the url.

Callers 1

promiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected