diff --git a/add-on/src/popup/page-action/page.js b/add-on/src/popup/page-action/page.js index b94d4b16b..1b672e143 100644 --- a/add-on/src/popup/page-action/page.js +++ b/add-on/src/popup/page-action/page.js @@ -9,12 +9,13 @@ const { contextActions } = require('../browser-action/context-actions') // Passed current app `state` from the store and `emit`, a function to create // events, allowing views to signal back to the store that something happened. module.exports = function pageActionPage (state, emit) { + const onViewOnGateway = () => emit('viewOnGateway') const onCopy = (copyAction) => emit('copy', copyAction) const onPin = () => emit('pin') const onUnPin = () => emit('unPin') const onToggleSiteRedirect = () => emit('toggleSiteRedirect') - const contextActionsProps = Object.assign({ onCopy, onPin, onUnPin, onToggleSiteRedirect }, state) + const contextActionsProps = Object.assign({ onViewOnGateway, onCopy, onPin, onUnPin, onToggleSiteRedirect }, state) // Instant init: page-action is shown only in ipfsContext contextActionsProps.isIpfsContext = true