mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 23:10:02 -04:00
migrate to $scramjet object from __scramjet
This commit is contained in:
parent
146c202ae2
commit
cf9e5a3418
13 changed files with 77 additions and 67 deletions
|
@ -67,17 +67,10 @@ const base64 = {
|
|||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__scramjet$codecs: {
|
||||
none: Codec;
|
||||
plain: Codec;
|
||||
base64: Codec;
|
||||
xor: Codec;
|
||||
}
|
||||
}
|
||||
if (!self.$scramjet) {
|
||||
//@ts-expect-error really dumb workaround
|
||||
self.$scramjet = {}
|
||||
}
|
||||
|
||||
self.__scramjet$codecs = {
|
||||
self.$scramjet.codecs = {
|
||||
none, plain, base64, xor
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue