Fix cannot set property 'enabled' of undefined (#1938)

This commit is contained in:
Alberto Miranda 2021-06-02 11:41:09 -03:00 committed by GitHub
parent e9fa721ca8
commit 5f5e4e0ee2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -81,9 +81,9 @@ function init () {
isReady = true
const state = results.state
menu.init()
windows.main.init(state, { hidden })
windows.webtorrent.init()
menu.init()
// To keep app startup fast, some code is delayed.
setTimeout(() => {

View file

@ -74,6 +74,7 @@ function getMenuItem (label) {
})
if (menuItem) return menuItem
}
return {}
}
function getMenuTemplate () {