mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 07:30: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
|
@ -1,22 +1,10 @@
|
|||
import { Codec } from "./codecs";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__scramjet$config: {
|
||||
prefix: string;
|
||||
codec: Codec
|
||||
config: string;
|
||||
shared: string;
|
||||
worker: string;
|
||||
client: string;
|
||||
codecs: string;
|
||||
}
|
||||
}
|
||||
if (!self.$scramjet) {
|
||||
//@ts-expect-error really dumb workaround
|
||||
self.$scramjet = {}
|
||||
}
|
||||
|
||||
self.__scramjet$config = {
|
||||
self.$scramjet.config = {
|
||||
prefix: "/scramjet/",
|
||||
codec: self.__scramjet$codecs.plain,
|
||||
codec: self.$scramjet.codecs.plain,
|
||||
config: "/scram/scramjet.config.js",
|
||||
shared: "/scram/scramjet.shared.js",
|
||||
worker: "/scram/scramjet.worker.js",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue