Skip to content

Commit

Permalink
fix: Make sure searchbar doesn't render
Browse files Browse the repository at this point in the history
If searchbar ever renders in FlagshipApp, this will currently trigger
a breaking bug with iframes CSP issues.
As of now we just ask the cozybar to not render the searchbar when
we're in flagship so the issue does not exist
  • Loading branch information
acezard committed Jul 19, 2022
1 parent 82027e1 commit 257dfe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export class Bar extends Component {
drawerVisible: false,
usageTracker: null,
supportDisplayed: false,
searchBarEnabled: props.isDrive && !props.isPublic && !isMobileApp()
searchBarEnabled:
props.isDrive && !props.isPublic && !isMobileApp() && !isFlagshipApp()
}
this.fetchApps = this.fetchApps.bind(this)
this.fetchInitialData = this.fetchInitialData.bind(this)
Expand Down

0 comments on commit 257dfe5

Please sign in to comment.