electron/spec-main/fixtures/extensions/chrome-webRequest/background.js
Eryk Rakowski bf24759354
fix(extensions): implement missing web_request hooks (#22655)
Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
Co-authored-by: samuelmaddock <samuel.maddock@gmail.com>
2020-12-18 15:11:43 -08:00

9 lines
170 B
JavaScript

/* global chrome */
chrome.webRequest.onBeforeRequest.addListener(
(details) => {
return { cancel: true };
},
{ urls: ['*://127.0.0.1:*'] },
['blocking']
);