Skip to content

Commit

Permalink
Fix SiteRemovalNotification is always visible when reloading
Browse files Browse the repository at this point in the history
SiteRemovalNotification in NTP should be hidden after reloading or
restart.
To fix this, ctor of NewTabPage component hides it.
  • Loading branch information
simonhong committed Jan 1, 2019
1 parent 06f591e commit 1c2d6aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/brave_new_tab_ui/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ interface Props {
}

class NewTabPage extends React.Component<Props, {}> {
constructor (props: Props) {
super(props)
// Makes NTP start w/o SiteRemovalNotification.
this.onHideSiteRemovalNotification()
}

get actions () {
return this.props.actions
}
Expand Down

0 comments on commit 1c2d6aa

Please sign in to comment.