@aepyornis/fastboot.ts 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/client.ts +2 -2
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -153,9 +153,9 @@ export class FastbootClient {
|
|
|
153
153
|
this.logger.log(`ACTION NEEDED: flashing ${command}`)
|
|
154
154
|
await this.fd.exec(`flashing ${command}`)
|
|
155
155
|
|
|
156
|
-
// some devices register before we have a chance to call
|
|
156
|
+
// some devices might register before we have a chance to call
|
|
157
157
|
// waitForReconnect()
|
|
158
|
-
if ((await navigator.usb.getDevices()).length > 0) {
|
|
158
|
+
if (this.getVarCache("product") === "bangkk" && (await navigator.usb.getDevices()).length > 0) {
|
|
159
159
|
await this.fd.reconnect()
|
|
160
160
|
} else {
|
|
161
161
|
await this.fd.waitForReconnect()
|