Access to USB devices

Hi,

I am trying to write an importer for an e-reader. I want my Logseq plugin to monitor when the USB device has been plugged and notify the logseq user if there are any new annotations that need to be imported. At the moment I am using, the navigator.usb API, which I think is available in electron (?). Opening the browser’s console in logseq and typing:

const devices = await navigator.usb.getDevices();

This always returns an empty list, even when I know that the device is plugged in and is visible from other software. I have also tried this from logseq’s console:


navigator.usb.addEventListener("connect", (event) => {
    console.log(">>>> new device detected!!!!");
});

Are external USB devices visible at all from logseq?