Skip to content

Commit 4827fee

Browse files
authored
fix: import to ipfs is disabled
ipfs#861 code by @lidel
1 parent 8a2a95a commit 4827fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add-on/src/lib/context-menus.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function createContextMenus (getState, runtime, ipfsPathValidator, { onAddFromCo
163163
ipfsContext = ipfsPathValidator.isIpfsPageActionsContext(currentTab.url)
164164
}
165165
}
166-
const ifApi = getState().peerCount > 0
166+
const ifApi = getState().peerCount >= 0
167167
for (const item of apiMenuItems) {
168168
await browser.contextMenus.update(item, { enabled: ifApi })
169169
}

0 commit comments

Comments
 (0)