feat(demo): add a redundant "add usb" menu

fixes #350
This commit is contained in:
Simon Chan 2021-12-15 10:11:54 +08:00
parent 172596217d
commit c15d5b2bac

View file

@ -184,6 +184,12 @@ function _Connect(): JSX.Element | null {
const addMenuProps = useMemo(() => {
const items = [];
items.push({
key: 'usb',
text: 'USB',
onClick: addUsbBackend,
});
items.push({
key: 'websocket',
text: 'WebSocket',