Add setApiUrlPrefix and use it in the android version.
This commit is contained in:
parent
74d8a12c07
commit
ae4b8cf0d3
4 changed files with 36 additions and 14 deletions
|
@ -23,6 +23,7 @@ import choo from 'choo';
|
|||
import html from 'choo/html';
|
||||
import Raven from 'raven-js';
|
||||
|
||||
import { setApiUrlPrefix } from '../app/api';
|
||||
import assets from '../common/assets';
|
||||
import Header from '../app/ui/header';
|
||||
import locale from '../common/locales';
|
||||
|
@ -38,6 +39,7 @@ import error from './pages/error';
|
|||
|
||||
if (navigator.userAgent === 'Send Android') {
|
||||
assets.setPrefix('/android_asset');
|
||||
setApiUrlPrefix('https://send2.dev.lcip.org');
|
||||
}
|
||||
|
||||
const app = choo();
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue