webDeviceChooserEnabled property

bool webDeviceChooserEnabled
getter/setter pair

Web only (no-op elsewhere). Whether listDevices may show the browser device chooser (requestDevice()) when no Ledger is permitted yet.

When false, listDevices only returns devices the user already permitted for this origin, and an empty list otherwise. Set it before listing devices from pages that cannot show a chooser (no user gesture, extension side panel or popup). Defaults to true.

Implementation

static bool webDeviceChooserEnabled = true;