mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-25 22:41:36 +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 {
|
export default {
|
||||||
randomSecureToken,
|
randomSecureToken,
|
||||||
randomString,
|
randomString,
|
||||||
@ -365,5 +373,7 @@ export default {
|
|||||||
hashedBlobId,
|
hashedBlobId,
|
||||||
toMap,
|
toMap,
|
||||||
isString,
|
isString,
|
||||||
getResourceDir
|
getResourceDir,
|
||||||
|
isMac,
|
||||||
|
isWindows
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user