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 #10417 from brave/10415
Browse files Browse the repository at this point in the history
immutableData.getIn first arg should be an array
  • Loading branch information
bsclifton committed Aug 10, 2017
1 parent 4b22741 commit 4167fea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ let loadAppStatePromise = SessionStore.loadAppState()
loadAppStatePromise.then((initialImmutableState) => {
telemetry.setCheckpointAndReport('state-loaded')
const {HARDWARE_ACCELERATION_ENABLED, SMOOTH_SCROLL_ENABLED, SEND_CRASH_REPORTS} = require('../js/constants/settings')
if (initialImmutableState.getIn('settings', HARDWARE_ACCELERATION_ENABLED) === false) {
if (initialImmutableState.getIn(['settings', HARDWARE_ACCELERATION_ENABLED]) === false) {
app.disableHardwareAcceleration()
}
if (initialImmutableState.getIn(['settings', SEND_CRASH_REPORTS]) !== false) {
Expand Down Expand Up @@ -310,7 +310,7 @@ app.on('ready', () => {
process.platform,
process.arch,
process.env.BRAVE_UPDATE_VERSION || app.getVersion(),
initialImmutableState.getIn('settings', settings.UPDATE_TO_PREVIEW_RELEASES)
initialImmutableState.getIn(['settings', settings.UPDATE_TO_PREVIEW_RELEASES])
)

// This is fired by a menu entry
Expand Down

0 comments on commit 4167fea

Please sign in to comment.