mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-25 06:01:40 +08:00
refactor(utils): add isMac and isWindows as util func
This commit is contained in:
parent
2556d51870
commit
13235a25b1
@ -332,6 +332,14 @@ export function getResourceDir() {
|
||||
}
|
||||
}
|
||||
|
||||
export function isMac() {
|
||||
return process.platform === "darwin";
|
||||
}
|
||||
|
||||
export function isWindows() {
|
||||
return process.platform === "win32";
|
||||
}
|
||||
|
||||
export default {
|
||||
randomSecureToken,
|
||||
randomString,
|
||||
@ -365,5 +373,7 @@ export default {
|
||||
hashedBlobId,
|
||||
toMap,
|
||||
isString,
|
||||
getResourceDir
|
||||
getResourceDir,
|
||||
isMac,
|
||||
isWindows
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user