mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -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
|
@ -9,7 +9,7 @@ import { rewriteJs } from "./js";
|
|||
export function isScramjetFile(src: string) {
|
||||
let bool = false;
|
||||
["codecs", "client", "shared", "worker", "config"].forEach((file) => {
|
||||
if (src === self.__scramjet$config[file]) bool = true;
|
||||
if (src === self.$scramjet.config[file]) bool = true;
|
||||
});
|
||||
|
||||
return bool;
|
||||
|
@ -73,7 +73,7 @@ function traverseParsedHtml(node, origin?: URL) {
|
|||
const scramjetScripts = [];
|
||||
["codecs", "config", "shared", "client"].forEach((script) => {
|
||||
scramjetScripts.push(new Element("script", {
|
||||
src: self.__scramjet$config[script],
|
||||
src: self.$scramjet.config[script],
|
||||
"data-scramjet": ""
|
||||
}));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue