mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-17 08:00:02 -04:00
lint fixes
This commit is contained in:
parent
8ff087efb2
commit
c3ccd8f238
12 changed files with 41 additions and 44 deletions
|
@ -3,9 +3,9 @@
|
|||
import { isemulatedsw } from "../..";
|
||||
import { unrewriteUrl } from "../../../shared";
|
||||
import { ScramjetClient } from "../../client";
|
||||
import { rewriteUrl, rewriteHeaders } from "../../../shared";
|
||||
import { rewriteUrl } from "../../../shared";
|
||||
|
||||
export default function (client: ScramjetClient, self: typeof globalThis) {
|
||||
export default function (client: ScramjetClient, _self: typeof globalThis) {
|
||||
client.Proxy("fetch", {
|
||||
apply(ctx) {
|
||||
if (typeof ctx.args[0] === "string" || ctx.args[0] instanceof URL) {
|
||||
|
|
|
@ -59,7 +59,7 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
|
|||
fakeWebSocket.dispatchEvent(fakeev);
|
||||
}
|
||||
|
||||
barews.addEventListener("open", (ev) => {
|
||||
barews.addEventListener("open", () => {
|
||||
fakeEventSend(new Event("open"));
|
||||
});
|
||||
barews.addEventListener("close", (ev) => {
|
||||
|
@ -76,7 +76,7 @@ export default function (client: ScramjetClient, self: typeof globalThis) {
|
|||
|
||||
fakeEventSend(fakeev);
|
||||
});
|
||||
barews.addEventListener("error", (ev) => {
|
||||
barews.addEventListener("error", () => {
|
||||
fakeEventSend(new Event("error"));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue