mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
Add setApiUrlPrefix and use it in the android version.
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user