refactor: delete codecs/ & self.$scramjet

This commit is contained in:
velzie 2024-10-13 10:20:19 -04:00
parent f8d33a207e
commit 337134bcdc
No known key found for this signature in database
GPG key ID: AA51AEFB0A1F3820
22 changed files with 148 additions and 206 deletions

View file

@ -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;