Skip to content

Commit

Permalink
Fix employee detection in OSS version
Browse files Browse the repository at this point in the history
Summary: Changelog: Fix incorrect warning in OSS builds hinting to install a closed source build. Fixes facebook#1853

Reviewed By: passy

Differential Revision: D26019227

fbshipit-source-id: 61a0270997d0aa67d55224e4f6268ed3103099c7
  • Loading branch information
mweststrate authored and facebook-github-bot committed Jan 22, 2021
1 parent d3430e0 commit ba74b07
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions desktop/app/src/chrome/AppWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,21 @@ type Props = {logger: Logger};
export default function App(props: Props) {
useEffect(() => {
if (fbConfig.warnFBEmployees && isProduction()) {
isFBEmployee().then(() => {
notification.warning({
placement: 'bottomLeft',
message: 'Please use Flipper@FB',
description: (
<>
You are using the open-source version of Flipper. Install the
internal build from Managed Software Center to get access to more
plugins.
</>
),
duration: null,
});
isFBEmployee().then((isEmployee) => {
if (isEmployee) {
notification.warning({
placement: 'bottomLeft',
message: 'Please use Flipper@FB',
description: (
<>
You are using the open-source version of Flipper. Install the
internal build from Managed Software Center to get access to
more plugins.
</>
),
duration: null,
});
}
});
}
}, []);
Expand Down

0 comments on commit ba74b07

Please sign in to comment.