mirror of
https://github.com/heyman/heynote.git
synced 2024-12-27 00:58:50 +01:00
f532c7939b
* Add bufferPath to config, support bufferPath symlink * defaultPath before checking realpath * Move code for retrieving buffer path into its own file * Do the realpathSync() call for the whole final file path, to allow the buffer file to be a symlink --------- Co-authored-by: Jonatan Heyman <jonatan@heyman.info>
8 lines
234 B
TypeScript
8 lines
234 B
TypeScript
const os = require('os');
|
|
|
|
export const isDev = !!process.env.VITE_DEV_SERVER_URL
|
|
|
|
export const isMac = os.platform() === "darwin";
|
|
export const isWindows = os.platform() === "win32";
|
|
export const isLinux = os.platform() === "linux";
|