Skip to content

Commit

Permalink
Merge branch 'fix-announcement-banner-only-mac-app' into 'master'
Browse files Browse the repository at this point in the history
Fix: Annoucement banner only for mac app

See merge request kchat/webapp!800
  • Loading branch information
antonbuks committed Jun 11, 2024
2 parents 5d89bb6 + 0dd21b9 commit 8b1b21f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ export default class AppStoreBar extends React.PureComponent<Props> {
const latestVer = latestVersion || '';
const userAgentVersion = UserAgent.getDesktopVersion();

if (!UserAgent.isMacApp()) {
return null;
}

if (UserAgent.isNotMacMas()) {
return null;
}

if (!latestVer || !userAgentVersion) {
return null;
}
Expand Down

0 comments on commit 8b1b21f

Please sign in to comment.