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