Skip to content

Commit

Permalink
Merge pull request #863 by @bluelovers
Browse files Browse the repository at this point in the history
Closes #861
  • Loading branch information
lidel authored Apr 15, 2020
2 parents 06227a2 + 4827fee commit 260cfaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add-on/src/lib/context-menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function createContextMenus (getState, runtime, ipfsPathValidator, { onAddFromCo
ipfsContext = ipfsPathValidator.isIpfsPageActionsContext(currentTab.url)
}
}
const ifApi = getState().peerCount > 0
const ifApi = getState().peerCount >= 0
for (const item of apiMenuItems) {
await browser.contextMenus.update(item, { enabled: ifApi })
}
Expand Down

0 comments on commit 260cfaa

Please sign in to comment.