fix(webusb): fix a typo

This commit is contained in:
Simon Chan 2025-03-13 17:37:55 +08:00
parent 92511c63de
commit 4a8186c599
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
2 changed files with 2 additions and 4 deletions

View file

@ -18,11 +18,10 @@ export class AdbDaemonWebUsbDeviceManager {
*
* 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
? new AdbDaemonWebUsbDeviceManager(globalThis.navigator.usb)
: undefined;
})();
: undefined)();
#usbManager: USB;

View file

@ -2,7 +2,6 @@
import { hexToNumber, sequenceEqual } from "../../utils/index.js";
import type { AdbServerClient } from "../client.js";
import { FAIL } from "../stream.js";
export class NetworkError extends Error {