Loading app/src/controller/device/bootloader.class.js +11 −6 Original line number Diff line number Diff line import * as fastboot from "@e/fastboot"; import { TimeoutError } from "@e/fastboot"; import { configureZip, FastbootDevice, setDebugLevel, TimeoutError, USER_ACTION_MAP } from "@e/fastboot"; import { Device } from "./device.class.js"; import { WDebug } from "../../debug.js"; Loading @@ -8,18 +13,18 @@ import { WDebug } from "../../debug.js"; * */ export class Bootloader extends Device { constructor() { super(new fastboot.FastbootDevice()); super(new FastbootDevice()); } async init() { //await this.blobStore.init(); fastboot.configureZip({ configureZip({ workerScripts: { inflate: ["../dist/vendor/z-worker-pako.js", "pako_inflate.min.js"], }, }); // Enable verbose debug logging fastboot.setDebugLevel(2); setDebugLevel(2); } reboot(mode) { Loading Loading @@ -61,7 +66,7 @@ export class Bootloader extends Device { onReconnect, // Progress callback (action, item, progress) => { let userAction = fastboot.USER_ACTION_MAP[action]; let userAction = USER_ACTION_MAP[action]; onProgress(userAction, item, progress); }, ); Loading Loading
app/src/controller/device/bootloader.class.js +11 −6 Original line number Diff line number Diff line import * as fastboot from "@e/fastboot"; import { TimeoutError } from "@e/fastboot"; import { configureZip, FastbootDevice, setDebugLevel, TimeoutError, USER_ACTION_MAP } from "@e/fastboot"; import { Device } from "./device.class.js"; import { WDebug } from "../../debug.js"; Loading @@ -8,18 +13,18 @@ import { WDebug } from "../../debug.js"; * */ export class Bootloader extends Device { constructor() { super(new fastboot.FastbootDevice()); super(new FastbootDevice()); } async init() { //await this.blobStore.init(); fastboot.configureZip({ configureZip({ workerScripts: { inflate: ["../dist/vendor/z-worker-pako.js", "pako_inflate.min.js"], }, }); // Enable verbose debug logging fastboot.setDebugLevel(2); setDebugLevel(2); } reboot(mode) { Loading Loading @@ -61,7 +66,7 @@ export class Bootloader extends Device { onReconnect, // Progress callback (action, item, progress) => { let userAction = fastboot.USER_ACTION_MAP[action]; let userAction = USER_ACTION_MAP[action]; onProgress(userAction, item, progress); }, ); Loading