Skip to content

Commit

Permalink
fix: show header nav on all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
test123456789012345 committed Jun 8, 2020
1 parent 2d98eb8 commit caa676d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@ import buildActionButton from './model/build-action-button'
import isApplicable from './model/is-applicable'

const run = async () => {
if (!isApplicable) {
return undefined
}

const savedFilters =
(browser.storage.sync.get('filters') |> await |> property('filters')) || []

return Promise.all([
buildHeaderNav({ savedFilters }),
buildActionButton({ savedFilters }),
...(isApplicable ? [buildActionButton({ savedFilters })] : []),
])
}

Expand Down

0 comments on commit caa676d

Please sign in to comment.