mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 01:39:21 +02:00
fix(webusb): fix a typo
This commit is contained in:
parent
92511c63de
commit
4a8186c599
2 changed files with 2 additions and 4 deletions
|
@ -18,11 +18,10 @@ export class AdbDaemonWebUsbDeviceManager {
|
||||||
*
|
*
|
||||||
* May be `undefined` if current runtime does not support WebUSB.
|
* May be `undefined` if current runtime does not support WebUSB.
|
||||||
*/
|
*/
|
||||||
static readonly BROWSER = /* #__PURE__ */ (() => {
|
static readonly BROWSER = /* #__PURE__ */ (() =>
|
||||||
typeof globalThis.navigator !== "undefined" && globalThis.navigator.usb
|
typeof globalThis.navigator !== "undefined" && globalThis.navigator.usb
|
||||||
? new AdbDaemonWebUsbDeviceManager(globalThis.navigator.usb)
|
? new AdbDaemonWebUsbDeviceManager(globalThis.navigator.usb)
|
||||||
: undefined;
|
: undefined)();
|
||||||
})();
|
|
||||||
|
|
||||||
#usbManager: USB;
|
#usbManager: USB;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import { hexToNumber, sequenceEqual } from "../../utils/index.js";
|
import { hexToNumber, sequenceEqual } from "../../utils/index.js";
|
||||||
import type { AdbServerClient } from "../client.js";
|
import type { AdbServerClient } from "../client.js";
|
||||||
|
|
||||||
import { FAIL } from "../stream.js";
|
import { FAIL } from "../stream.js";
|
||||||
|
|
||||||
export class NetworkError extends Error {
|
export class NetworkError extends Error {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue