Skip to content

Commit

Permalink
Converts BraveryPanel into redux component
Browse files Browse the repository at this point in the history
Resolves brave#9454

Auditors: @bsclifton @bridiver

Test Plan:
  • Loading branch information
NejcZdovc committed Jun 20, 2017
1 parent 3db05b2 commit 0597c77
Show file tree
Hide file tree
Showing 6 changed files with 309 additions and 250 deletions.
21 changes: 21 additions & 0 deletions app/common/lib/braveryPanelUtil.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

const Immutable = require('immutable')

const getRedirectedResources = (redirectedResources) => {
let result = new Immutable.List()
if (redirectedResources) {
redirectedResources.forEach((urls) => {
urls.forEach((url) => {
result = result.push(url)
})
})
}
return result
}

module.exports = {
getRedirectedResources
}
Loading

0 comments on commit 0597c77

Please sign in to comment.