We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e145aa commit e50b88cCopy full SHA for e50b88c
src/lib/utils/platform.js
@@ -9,4 +9,7 @@ export const isWindows = () => {
9
return FORCE_WINDOWS || (globalThis.navigator.userAgent.toLowerCase().includes("windows") ?? false)
10
}
11
12
-export const isLinux = () => globalThis.navigator.userAgent.toLowerCase().includes("linux") ?? false
+export const isLinux = () => {
13
+ if (!browser) return false;
14
+ return globalThis.navigator.userAgent.toLowerCase().includes("linux") ?? false
15
+}
0 commit comments