Detect OS to select installation Tab

This commit is contained in:
braginini
2022-06-05 16:35:03 +02:00
parent 4d3bd0c99d
commit e62e8a00f8

View File

@@ -29,7 +29,7 @@ export const AddPeer = () => {
if (navigator.userAgent.indexOf("Mac")!==-1) os=3;
if (navigator.userAgent.indexOf("X11")!==-1) os=1;
if (navigator.userAgent.indexOf("Linux")!==-1) os=1
return 1
return os
}
const [openTab, setOpenTab] = useState(detectOS);