mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
bug fixes
Co-authored-by: Avad3 <Avad3@users.noreply.github.com>
This commit is contained in:
parent
a39a2657c6
commit
47b59945a9
23 changed files with 385 additions and 327 deletions
15
src/shared/index.ts
Normal file
15
src/shared/index.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
export { encodeUrl, decodeUrl } from "./rewriters/url";
|
||||
export { rewriteCss } from "./rewriters/css";
|
||||
export { rewriteHtml, rewriteSrcset } from "./rewriters/html";
|
||||
export { rewriteJs } from "./rewriters/js";
|
||||
export { rewriteHeaders } from "./rewriters/headers";
|
||||
export { BareClient } from "@mercuryworkshop/bare-mux"
|
||||
|
||||
export function isScramjetFile(src: string) {
|
||||
let bool = false;
|
||||
["codecs", "client", "shared", "worker", "config"].forEach((file) => {
|
||||
if (src === self.__scramjet$config[file]) bool = true;
|
||||
});
|
||||
|
||||
return bool;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue