mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
fix siteflags
This commit is contained in:
parent
fd420cfda7
commit
8fc98e66c8
5 changed files with 36 additions and 12 deletions
|
@ -6,6 +6,11 @@ const scramjet = new ScramjetController({
|
|||
shared: "/scram/scramjet.shared.js",
|
||||
sync: "/scram/scramjet.sync.js",
|
||||
},
|
||||
siteFlags: {
|
||||
"https://discord.com/.*": {
|
||||
naiiveRewriter: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
scramjet.init("./sw.js");
|
||||
|
@ -183,7 +188,7 @@ function App() {
|
|||
if (!url) return;
|
||||
if (url === "about:blank") return;
|
||||
|
||||
this.url = $scramjet.codecs.plain.decode(
|
||||
this.url = $scramjet.codec.decode(
|
||||
url.substring((location.href + "/scramjet").length)
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue