-
Notifications
You must be signed in to change notification settings - Fork 971
Fixes disabled torrent viewer torrent download #14134
Conversation
js/stores/appStore.js
Outdated
@@ -202,6 +204,14 @@ const applyReducers = (state, action, immutableAction) => reducers.reduce( | |||
return newState | |||
}, appState) | |||
|
|||
const isWebTorrentEnabled = (state) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Place of this function is not perfect. Where would you put it, so that I can also add unit tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NejcZdovc how about app/common/state/extensionState.js
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking about that file but was not sure. Ok let me put it there. Thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is a perfect place to put it- good call 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved
3d6763e
to
a735504
Compare
Resolves brave#10767 Auditors: Test Plan:
a735504
to
a4584cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes work great and code looks good 😄 Thanks for adding tests
Fixes disabled torrent viewer torrent download
Fixes disabled torrent viewer torrent download
Resolves #10767
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests