[FIX] Admin panel not logging in automatically (#2330)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
95e228e590
commit
17b4084c6c
|
@ -31,6 +31,8 @@ class AdminPanelView extends React.Component {
|
||||||
<SafeAreaView theme={theme}>
|
<SafeAreaView theme={theme}>
|
||||||
<StatusBar theme={theme} />
|
<StatusBar theme={theme} />
|
||||||
<WebView
|
<WebView
|
||||||
|
// https://github.com/react-native-community/react-native-webview/issues/1311
|
||||||
|
onMessage={() => {}}
|
||||||
source={{ uri: `${ baseUrl }/admin/info?layout=embedded` }}
|
source={{ uri: `${ baseUrl }/admin/info?layout=embedded` }}
|
||||||
injectedJavaScript={`Meteor.loginWithToken('${ token }', function() { })`}
|
injectedJavaScript={`Meteor.loginWithToken('${ token }', function() { })`}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue