Skip to content

Commit f303024

Browse files
committed
refactor: use 'node:os' module for platform detection in isWindows function
1 parent dc5ef9d commit f303024

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/shared/platform.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import os from 'node:os'
2+
13
export function isWindows() {
2-
return process.platform === 'win32'
4+
return os.platform() === 'win32'
35
}

0 commit comments

Comments
 (0)