Back out "Use isPWA utility function instead"
Summary:
Original commit changeset: 6bc0c942b3d9
Original Phabricator Diff: D50885337
There's an issue with the import, same reason we do:
```
require('flipper-ui-core').startFlipperDesktop(flipperServer);
```
Reviewed By: aigoncharov
Differential Revision: D50926125
fbshipit-source-id: 04e1b920bcecab9f245924907637b36dac312f1f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e72dcbb28d
commit
fecaa8d974
@@ -12,7 +12,6 @@ import {Image, Modal, Button} from 'antd';
|
||||
import {getFlipperLib, Layout, _NuxManagerContext} from 'flipper-plugin';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
import isProduction from '../utils/isProduction';
|
||||
import {isPWA} from '../utils/pwa';
|
||||
|
||||
type Props = {
|
||||
onHide: () => void;
|
||||
@@ -56,7 +55,7 @@ export function shouldShowPWAInstallationWizard(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isPWA()) {
|
||||
if (window.matchMedia('(display-mode: standalone)').matches) {
|
||||
tracker.track('pwa-installation-wizard-should-show', {
|
||||
show: false,
|
||||
reason: 'Display mode is standalone, seems is already running as PWA',
|
||||
|
||||
Reference in New Issue
Block a user