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
@@ -15,7 +15,6 @@ import {
|
||||
import {init as initLogger} from './fb-stubs/Logger';
|
||||
import {initializeRenderHost} from './initializeRenderHost';
|
||||
import {createFlipperServer, FlipperServerState} from 'flipper-server-client';
|
||||
import {isPWA} from 'flipper-ui-core';
|
||||
|
||||
const loadingContainer = document.getElementById('loading');
|
||||
if (loadingContainer) {
|
||||
@@ -168,7 +167,7 @@ start().catch((e) => {
|
||||
logger.track('success-rate', 'flipper-ui-browser-started', {
|
||||
value: 0,
|
||||
error: getStringFromErrorLike(e),
|
||||
pwa: isPWA(),
|
||||
pwa: window.matchMedia('(display-mode: standalone)').matches,
|
||||
});
|
||||
window.flipperShowMessage?.('Failed to start UI with error: ' + e);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user