Add setApiUrlPrefix and use it in the android version.

This commit is contained in:
Donovan Preston 2018-11-19 15:10:57 -05:00
parent 74d8a12c07
commit ae4b8cf0d3
4 changed files with 36 additions and 14 deletions

View file

@ -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();

View file

@ -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">