refactor: remove favicon from InternalProvider
This commit is contained in:
parent
adc3278c7a
commit
18b0ced465
|
@ -6,17 +6,13 @@ import {
|
||||||
OnRequestDetailsType,
|
OnRequestDetailsType,
|
||||||
} from "../types.js";
|
} from "../types.js";
|
||||||
import browser from "webextension-polyfill";
|
import browser from "webextension-polyfill";
|
||||||
import { RequestOverrideResponse } from "@lumeweb/libweb";
|
|
||||||
import { queryKernel } from "../main/background.js";
|
|
||||||
import { requestProxies } from "../util.js";
|
import { requestProxies } from "../util.js";
|
||||||
|
|
||||||
export default class InternalProvider extends BaseProvider {
|
export default class InternalProvider extends BaseProvider {
|
||||||
async shouldHandleRequest(
|
async shouldHandleRequest(
|
||||||
details: OnBeforeRequestDetailsType,
|
details: OnBeforeRequestDetailsType,
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
return ["http://kernel.lume/", "http://kernel.lume/favicon.ico"].includes(
|
return ["http://kernel.lume/"].includes(details.url);
|
||||||
details.url,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async handleRequest(
|
async handleRequest(
|
||||||
|
|
Reference in New Issue