mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-17 08:00:02 -04:00
misc refactors
This commit is contained in:
parent
819c1701d0
commit
0939dd2b57
25 changed files with 82 additions and 66 deletions
|
@ -3,7 +3,7 @@
|
|||
import { isemulatedsw } from "../..";
|
||||
import { decodeUrl } from "../../../shared/rewriters/url";
|
||||
import { ScramjetClient } from "../../client";
|
||||
import { encodeUrl, rewriteHeaders } from "../../shared";
|
||||
import { encodeUrl, rewriteHeaders } from "../../../shared";
|
||||
|
||||
export default function (client: ScramjetClient, self: typeof globalThis) {
|
||||
client.Proxy("fetch", {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { iswindow, isworker } from "../..";
|
||||
import { ScramjetClient } from "../../client";
|
||||
import { BareClient } from "../../shared";
|
||||
import { BareClient } from "../../../shared";
|
||||
|
||||
const bare = iswindow && new BareClient();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { encodeUrl, rewriteHeaders } from "../../shared";
|
||||
import { encodeUrl, rewriteHeaders } from "../../../shared";
|
||||
|
||||
export default function (client, self) {
|
||||
client.Proxy("XMLHttpRequest.prototype.open", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue