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,
} from "../types.js";
import browser from "webextension-polyfill";
import { RequestOverrideResponse } from "@lumeweb/libweb";
import { queryKernel } from "../main/background.js";
import { requestProxies } from "../util.js";
export default class InternalProvider extends BaseProvider {
async shouldHandleRequest(
details: OnBeforeRequestDetailsType,
): Promise<boolean> {
return ["http://kernel.lume/", "http://kernel.lume/favicon.ico"].includes(
details.url,
);
return ["http://kernel.lume/"].includes(details.url);
}
async handleRequest(