refactor: remove favicon from InternalProvider
This commit is contained in:
parent
adc3278c7a
commit
18b0ced465
|
@ -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(
|
||||
|
|
Reference in New Issue