Skip to content

Commit

Permalink
fix: generate secret after setEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper-RF committed Nov 2, 2023
1 parent cae556a commit dcfbeea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/desktop/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ const webcrypto = new Crypto()

global.crypto = webcrypto

const SOCKET_IO_SECRET = generateSecret()

let dataDir = DATA_DIR
let mainWindow: BrowserWindow | null
let splash: BrowserWindow | null
Expand Down Expand Up @@ -105,6 +103,8 @@ setEngine(
})
)

const SOCKET_IO_SECRET = generateSecret()

export const isBrowserWindow = (window: BrowserWindow | null): window is BrowserWindow => {
return window instanceof BrowserWindow
}
Expand Down

0 comments on commit dcfbeea

Please sign in to comment.