mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
refactor(server/utils): isMac/isWin - replace fn with boolean
those values cannot change during runtime, => there is no need to have these checks as dynamic function, instead just export the boolean value directly
This commit is contained in:
@@ -321,11 +321,9 @@ export function getResourceDir() {
|
||||
}
|
||||
}
|
||||
|
||||
export function isMac() {
|
||||
return process.platform === "darwin";
|
||||
}
|
||||
export const isMac = process.platform === "darwin";
|
||||
|
||||
export function isWindows() {
|
||||
export const isWindows = process.platform === "win32";
|
||||
return process.platform === "win32";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user