We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c78d32 commit 9dce146Copy full SHA for 9dce146
ui/src/hooks/useUserAgent.ts
@@ -1,5 +1,5 @@
1
export default function useUserAgent() {
2
const userAgent = navigator.userAgent.toLowerCase();
3
4
- return userAgent.indexOf("win") != -1 ? "win" : "mac";
+ return userAgent.indexOf("win") !== -1 ? "win" : "mac";
5
}
0 commit comments