Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c2b3524d authored by Simon Chan's avatar Simon Chan
Browse files

fix(webusb): improve detection in non-browsers

parent e946b455
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ export class AdbWebUsbBackendStream implements ReadableWritablePair<AdbPacketCor

export class AdbWebUsbBackend implements AdbBackend {
    public static isSupported(): boolean {
        return !!window.navigator?.usb;
        return !!globalThis.navigator?.usb;
    }

    public static async getDevices(): Promise<AdbWebUsbBackend[]> {