Refactoring about how proxy fetching happens
This commit is contained in:
@@ -8,7 +8,10 @@ export function base64Decode(s: string): Uint8Array {
|
||||
return bytes;
|
||||
}
|
||||
|
||||
export function base64Encode(buffer: Uint8Array): string {
|
||||
export function base64Encode(buffer: Uint8Array | string): string {
|
||||
if (typeof buffer === "string") {
|
||||
buffer = new TextEncoder().encode(buffer);
|
||||
}
|
||||
let binary = "";
|
||||
const len = buffer.byteLength;
|
||||
for (let i = 0; i < len; i++) {
|
||||
|
||||
+1
-1
@@ -109,7 +109,7 @@ export class System<HookT> extends EventEmitter<SystemEvents<HookT>> {
|
||||
plug.manifest,
|
||||
manifestOverrides[plug.manifest!.name],
|
||||
);
|
||||
console.log("New manifest", plug.manifest);
|
||||
// console.log("New manifest", plug.manifest);
|
||||
}
|
||||
// and there it is!
|
||||
const manifest = plug.manifest!;
|
||||
|
||||
Reference in New Issue
Block a user