Skip to content

Commit c7c7436

Browse files
committed
fix: viewOnGateway in page action in Firefox
1 parent 1dbf7e8 commit c7c7436

File tree

1 file changed

+2
-1
lines changed
  • add-on/src/popup/page-action

1 file changed

+2
-1
lines changed

add-on/src/popup/page-action/page.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ const { contextActions } = require('../browser-action/context-actions')
99
// Passed current app `state` from the store and `emit`, a function to create
1010
// events, allowing views to signal back to the store that something happened.
1111
module.exports = function pageActionPage (state, emit) {
12+
const onViewOnGateway = () => emit('viewOnGateway')
1213
const onCopy = (copyAction) => emit('copy', copyAction)
1314
const onPin = () => emit('pin')
1415
const onUnPin = () => emit('unPin')
1516
const onToggleSiteRedirect = () => emit('toggleSiteRedirect')
1617

17-
const contextActionsProps = Object.assign({ onCopy, onPin, onUnPin, onToggleSiteRedirect }, state)
18+
const contextActionsProps = Object.assign({ onViewOnGateway, onCopy, onPin, onUnPin, onToggleSiteRedirect }, state)
1819

1920
// Instant init: page-action is shown only in ipfsContext
2021
contextActionsProps.isIpfsContext = true

0 commit comments

Comments
 (0)