Skip to content

Commit

Permalink
fix: viewOnGateway in page action in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Dec 6, 2019
1 parent 1dbf7e8 commit c7c7436
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion add-on/src/popup/page-action/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7c7436

Please sign in to comment.