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 #8542 from brave/fix/8299
Browse files Browse the repository at this point in the history
show nothing for siteInfo on about: pages
  • Loading branch information
diracdeltas committed Apr 28, 2017
2 parents 754951e + 6a9b7f6 commit c88f470
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/components/siteInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const PropTypes = require('prop-types')
const ImmutableComponent = require('../../app/renderer/components/immutableComponent')
const cx = require('../lib/classSet')
const {isPotentialPhishingUrl} = require('../lib/urlutil')
const {isSourceAboutUrl} = require('../lib/appUrlUtil')
const Dialog = require('./dialog')
const Button = require('./button')
const appActions = require('../actions/appActions')
Expand Down Expand Up @@ -66,6 +67,10 @@ class SiteInfo extends ImmutableComponent {
return isPotentialPhishingUrl(this.props.frameProps.getIn(['location']))
}
render () {
if (isSourceAboutUrl(this.location)) {
return null
}

// Figure out the partition info display
let l10nArgs = {
partitionNumber: this.partitionNumber
Expand Down

0 comments on commit c88f470

Please sign in to comment.