From b0813ed082a18b1570490059ee4f69feb3d28481 Mon Sep 17 00:00:00 2001 From: chopster44 Date: Wed, 26 Nov 2025 22:19:44 +0000 Subject: [PATCH] (1.0.13) bug fix --- dist/index.cjs.js | 2 +- dist/index.es.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index d6eb221..971f0be 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -154,7 +154,7 @@ class Updater { */ async getFirmware(version) { 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; diff --git a/dist/index.es.js b/dist/index.es.js index f18e044..ff1ca2e 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -152,7 +152,7 @@ class Updater { */ async getFirmware(version) { 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; diff --git a/package.json b/package.json index e039686..ee9c3c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "updaterweblibrary", - "version": "1.0.12", + "version": "1.0.13", "description": "OTA Updater App frontend library", "repository": { "type": "git",