refactor: remove favicon from InternalProvider

This commit is contained in:
Derrick Hammer 2023-07-18 05:32:49 -04:00
parent adc3278c7a
commit 18b0ced465
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 5 deletions

View File

@ -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(