(1.0.13) bug fix
This commit is contained in:
2
dist/index.cjs.js
vendored
2
dist/index.cjs.js
vendored
@@ -154,7 +154,7 @@ class Updater {
|
|||||||
*/
|
*/
|
||||||
async getFirmware(version) {
|
async getFirmware(version) {
|
||||||
try {
|
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();
|
let buf = await res.arrayBuffer();
|
||||||
this.file = new Int8Array(buf);
|
this.file = new Int8Array(buf);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
2
dist/index.es.js
vendored
2
dist/index.es.js
vendored
@@ -152,7 +152,7 @@ class Updater {
|
|||||||
*/
|
*/
|
||||||
async getFirmware(version) {
|
async getFirmware(version) {
|
||||||
try {
|
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();
|
let buf = await res.arrayBuffer();
|
||||||
this.file = new Int8Array(buf);
|
this.file = new Int8Array(buf);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "updaterweblibrary",
|
"name": "updaterweblibrary",
|
||||||
"version": "1.0.12",
|
"version": "1.0.13",
|
||||||
"description": "OTA Updater App frontend library",
|
"description": "OTA Updater App frontend library",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user