(1.0.13) bug fix

This commit is contained in:
2025-11-26 22:19:44 +00:00
parent 6ffc5c1e8a
commit b0813ed082
3 changed files with 3 additions and 3 deletions

2
dist/index.cjs.js vendored
View File

@@ -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;

2
dist/index.es.js vendored
View File

@@ -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;