mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-17 08:00:02 -04:00
refactor: delete codecs/ & self.$scramjet
This commit is contained in:
parent
f8d33a207e
commit
337134bcdc
22 changed files with 148 additions and 206 deletions
|
@ -4,7 +4,7 @@ import { config, rewriteJs } from "../../shared";
|
|||
export default function (client: ScramjetClient, self: Self) {
|
||||
// used for proxying *direct eval*
|
||||
// eval("...") -> eval($scramjet$rewrite("..."))
|
||||
Object.defineProperty(self, config.rewritefn, {
|
||||
Object.defineProperty(self, config.globals.rewritefn, {
|
||||
value: function (js: any) {
|
||||
if (typeof js !== "string") return js;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue