1
0
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:
Dick Choi
2015-12-15 13:43:28 +09:00
parent 2499a05473
commit a872ad9d8b
8 changed files with 179 additions and 94 deletions

View File

@@ -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 () {