mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
support url base
This commit is contained in:
parent
a1ce4e33b3
commit
7a9c990b01
32 changed files with 213 additions and 158 deletions
|
@ -8,7 +8,7 @@ export default function (client: ScramjetClient, self: Self) {
|
|||
value: function (js: any) {
|
||||
if (typeof js !== "string") return js;
|
||||
|
||||
const rewritten = rewriteJs(js, client.url);
|
||||
const rewritten = rewriteJs(js, client.meta);
|
||||
|
||||
return rewritten;
|
||||
},
|
||||
|
@ -23,5 +23,5 @@ export function indirectEval(this: ScramjetClient, js: any) {
|
|||
|
||||
const indirection = this.global.eval;
|
||||
|
||||
return indirection(rewriteJs(js, this.url) as string);
|
||||
return indirection(rewriteJs(js, this.meta) as string);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue