(1.0.13) bug fix
This commit is contained in:
3 files changed
+3
-3
No files matched your search
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user