mirror of
https://github.com/heyman/heynote.git
synced 2025-08-09 06:45:04 +02:00
Add bufferPath to config, support bufferPath symlink (#27)
* 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>
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
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";
|
||||
|
||||
|
Reference in New Issue
Block a user