Skip to content

Commit 78b5a7d

Browse files
committed
WIP - Bootstrap now checks for runing agent and state.
1 parent 5ed8692 commit 78b5a7d

File tree

3 files changed

+28
-41
lines changed

3 files changed

+28
-41
lines changed

package-lock.json

Lines changed: 26 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ async function setHandlers() {
9292
try {
9393
await bootstrapPolykeyState(polykeyPath, password); //FIXME, Do a proper bootstrap. Also breaks if Agent is already running.
9494
} catch (e) {
95-
console.error(e);//asd
95+
console.log("Can't bootstrap state, Error: ", e.message);
9696
}
97-
let pid: number = 0;//asd
97+
let pid: number = 0;
9898
try {
9999
pid = await spawnBackgroundAgent(polykeyPath, password); //FIXME: Return a pid or not? work out if this is used anywhere.
100100
} catch (e) {

webpack.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const electronMain = {
2222
node: {
2323
// When in devmode, webpack needs to get it from node_modules
2424
__dirname: true,
25-
__filepath: true
2625
},
2726
module: {
2827
rules: [

0 commit comments

Comments
 (0)