hello all
i´m new in addon development.
i try my first steps.
now i have my first question
i would like to get data out of a http get response and save it in storage local.
i check if it is the right web request
with this code
function logURL(requestDetails) {
if ( requestDetails.url.substring(0,33) ==‘https://www.website.com/data/json’ ) {
console.log("found: " + requestDetails.url);
}
}
browser.webRequest.onBeforeRequest.addListener(
logURL,
{urls: ["<all_urls>"]}
);
but how can i access the result from this get
it is a json format
thanks br marcus