Skip to content

Commit

Permalink
fix: import to ipfs is disabled
Browse files Browse the repository at this point in the history
#861

code by @lidel
  • Loading branch information
bluelovers authored Apr 5, 2020
1 parent 8a2a95a commit 4827fee
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 4827fee

Please sign in to comment.