Skip to content

Commit

Permalink
Fix: condition with userAgent
Browse files Browse the repository at this point in the history
Changelog: fixed
  • Loading branch information
Boris authored and Boris committed Jun 11, 2024
1 parent 1b09eaa commit 0dd21b9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ export default class AppStoreBar extends React.PureComponent<Props> {
const latestVer = latestVersion || '';
const userAgentVersion = UserAgent.getDesktopVersion();

if (userAgentVersion.indexOf('Mac') === -1) {
if (!UserAgent.isMacApp()) {
return null;
}

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

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

0 comments on commit 0dd21b9

Please sign in to comment.