GM XHR header处理
Some checks failed
test / Run tests (push) Failing after 11s
build / Build (push) Failing after 23s
Some checks failed
test / Run tests (push) Failing after 11s
build / Build (push) Failing after 23s
This commit is contained in:
6
src/app/service/service_worker/utils.ts
Normal file
6
src/app/service/service_worker/utils.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export function isExtensionRequest(details: chrome.webRequest.ResourceRequest & { originUrl?: string }): boolean {
|
||||
return !!(
|
||||
(details.initiator && chrome.runtime.getURL("").startsWith(details.initiator)) ||
|
||||
(details.originUrl && details.originUrl.startsWith(chrome.runtime.getURL("")))
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user