Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #10382 from brave/open-new-link-in-window
Browse files Browse the repository at this point in the history
Use ImmutableJS correctly for frameOpts
  • Loading branch information
bsclifton committed Aug 10, 2017
1 parent fbe3c19 commit 03cffb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/stores/appStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ const createWindow = (action) => {
} else {
if (frameOpts && Object.keys(frameOpts).length > 0) {
if (frameOpts.forEach) {
frames = Immutable.toJS(frameOpts)
frames = Immutable.fromJS(frameOpts)
} else {
frames.push(frameOpts)
frames = frames.push(Immutable.fromJS(frameOpts))
}
} else if (startupSetting === 'homePage' && homepageSetting) {
frames = Immutable.fromJS(homepageSetting.split('|').map((homepage) => {
Expand Down

0 comments on commit 03cffb4

Please sign in to comment.