diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-26 11:30:42 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-26 11:30:42 -0700 |
commit | c0fcac0d1956caa2c426f1b265ccab7bdfc007bc (patch) | |
tree | 5818524e8c8f303dc19c08d7feacace76c9ef896 /modern/src/login | |
parent | 85898ce9db35333c2dd3fdf6998f89aa10645280 (diff) | |
download | trackermap-web-c0fcac0d1956caa2c426f1b265ccab7bdfc007bc.tar.gz trackermap-web-c0fcac0d1956caa2c426f1b265ccab7bdfc007bc.tar.bz2 trackermap-web-c0fcac0d1956caa2c426f1b265ccab7bdfc007bc.zip |
Native environment check
Diffstat (limited to 'modern/src/login')
-rw-r--r-- | modern/src/login/LoginPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/login/LoginPage.js b/modern/src/login/LoginPage.js index e3b5f39b..9bb764a8 100644 --- a/modern/src/login/LoginPage.js +++ b/modern/src/login/LoginPage.js @@ -12,7 +12,7 @@ import { sessionActions } from '../store'; import { useLocalization, useTranslation } from '../common/components/LocalizationProvider'; import LoginLayout from './LoginLayout'; import usePersistedState from '../common/util/usePersistedState'; -import { nativePostMessage } from '../common/components/NativeInterface'; +import { nativeEnvironment, nativePostMessage } from '../common/components/NativeInterface'; import LogoImage from './LogoImage'; const useStyles = makeStyles((theme) => ({ @@ -92,7 +92,7 @@ const LoginPage = () => { return ( <LoginLayout> <div className={classes.options}> - {(window.appInterface || (window.webkit && window.webkit.messageHandlers.appInterface)) && ( + {nativeEnvironment && ( <Tooltip title={t('settingsServer')}> <IconButton onClick={() => navigate('/change-server')}> <LockOpenIcon /> |