Skip to content

Commit

Permalink
fix: remove loading delay
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Mar 21, 2023
1 parent a095960 commit fb3ba0f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const { createTalkWindow } = require('./talk/talk.window.js')
const { createAuthenticationWindow } = require('./authentication/authentication.window.js')
const { openLoginWebView } = require('./authentication/login.window.js')
const { createWelcomeWindow } = require('./welcome/welcome.window.js')
const { setTimeout } = require('timers/promises')
const {
enableWebRequestInterceptor,
disableWebRequestInterceptor,
Expand Down Expand Up @@ -145,12 +144,6 @@ app.whenReady().then(async () => {
})
})

// Timeout to emulate startup loading
// TODO: replace with real initialization
if (process.env.NODE_ENV === 'production') {
await setTimeout(5000)
}

// TODO: handle JSON parsing error
const maybeAppData = await welcomeWindow.webContents.executeJavaScript('JSON.parse(localStorage[\'AppData\'] ?? null)')
if (maybeAppData) {
Expand Down

0 comments on commit fb3ba0f

Please sign in to comment.