From 6ffc5c1e8a358468018abc20646a2c6379f1745d Mon Sep 17 00:00:00 2001 From: chopster44 Date: Wed, 26 Nov 2025 22:19:21 +0000 Subject: [PATCH] needed cors proxy --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 028e7f8..9fc87ca 100644 --- a/src/index.ts +++ b/src/index.ts @@ -185,7 +185,7 @@ export default class Updater { public async getFirmware(version: versionNotes): Promise { try { - const res = await fetch(`${this.archiveURL}/download/${version.title}/firmware.bin`); + const res = await fetch(`http://cors.emaker.limited/?url=${this.archiveURL}/download/${version.title}/firmware.bin`); let buf = await res.arrayBuffer(); this.file = new Int8Array(buf); return true;