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

Commit

Permalink
let messageBox aware of titleMode config
Browse files Browse the repository at this point in the history
Auditors: @bsclifton, @luixxiul
Close #9285
  • Loading branch information
cezaraugusto committed Jun 22, 2017
1 parent b9b25c2 commit 77d4c2c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/renderer/components/navigation/navigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,16 @@ class NavigationBar extends React.Component {
const navbar = activeFrame.get('navbar') || Immutable.Map()

const hasTitle = title && location && title !== location.replace(/^https?:\/\//, '')
const titleMode = activeTabShowingMessageBox ||
(
mouseInTitlebar === false &&
const titleMode = activeTabShowingMessageBox
? !getSetting(settings.DISABLE_TITLE_MODE)
: mouseInTitlebar === false &&
!bookmarkDetail &&
hasTitle &&
!['about:blank', 'about:newtab'].includes(location) &&
!loading &&
!navbar.getIn(['urlbar', 'focused']) &&
!navbar.getIn(['urlbar', 'active']) &&
getSetting(settings.DISABLE_TITLE_MODE) === false
)

const props = {}

Expand Down

0 comments on commit 77d4c2c

Please sign in to comment.