mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
change IPC module(Raw buffer -> Socket) & set window behaviour for Windows
This commit is contained in:
@@ -13,14 +13,22 @@ function getLocalPath () {
|
||||
}
|
||||
|
||||
function forgeInitialRepositories () {
|
||||
return [{
|
||||
let defaultRepo = {
|
||||
key: keygen(),
|
||||
name: 'local',
|
||||
type: 'userData',
|
||||
user: {
|
||||
name: remote.getGlobal('process').env.USER
|
||||
name: 'New user'
|
||||
}
|
||||
}]
|
||||
}
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
defaultRepo.user.name = remote.process.env.USER
|
||||
} else if (process.platform === 'win32') {
|
||||
defaultRepo.user.name = remote.process.env.USERNAME
|
||||
}
|
||||
|
||||
return [defaultRepo]
|
||||
}
|
||||
|
||||
function getRepositories () {
|
||||
|
||||
Reference in New Issue
Block a user