Use isPWA utility function instead
Summary: As a follow-up from the utility created on the previous diff Reviewed By: aigoncharov Differential Revision: D50885337 fbshipit-source-id: 6bc0c942b3d96eb020ec15395f34d5794ba2ae15
This commit is contained in:
committed by
Facebook GitHub Bot
parent
08e742ceff
commit
1a98038979
@@ -12,6 +12,7 @@ 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;
|
||||
@@ -55,7 +56,7 @@ export function shouldShowPWAInstallationWizard(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (window.matchMedia('(display-mode: standalone)').matches) {
|
||||
if (isPWA()) {
|
||||
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