load android ui in dev when browsing to /android (#919)
This commit is contained in:
parent
041c8ffdd2
commit
17ee4e0058
5 changed files with 26 additions and 16 deletions
|
@ -27,5 +27,5 @@ app.route('/', require('./pages/home').default);
|
|||
app.route('/upload', require('./pages/upload').default);
|
||||
app.route('/share/:id', require('./pages/share').default);
|
||||
app.route('/preferences', require('./pages/preferences').default);
|
||||
app.route('/android/app/src/main/assets', require('./pages/home').default);
|
||||
app.route('/android', require('./pages/home').default);
|
||||
app.mount('body');
|
||||
|
|
|
@ -1,17 +1,11 @@
|
|||
|
||||
<!DOCTYPE html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
|
||||
<title>Firefox Send</title>
|
||||
<link href="index.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
const EXPIRE_SECONDS = 86400;
|
||||
</script>
|
||||
<script src="vendor.js"></script>
|
||||
<script src="android.js"></script>
|
||||
<script src="vendor.js"></script>
|
||||
<script src="android.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
const html = require('choo/html');
|
||||
|
||||
export default function mainPage(state, emit) {
|
||||
if (window.location.pathname === '/android/app/src/main/assets/') {
|
||||
// Hack: For debugging the android app in a web browser from
|
||||
// http://0.0.0.0:8080/android/app/src/main/assets/ after running webpack
|
||||
state.prefix = '/android/app/src/main/assets';
|
||||
}
|
||||
function clickPreferences(event) {
|
||||
event.preventDefault();
|
||||
emit('pushState', '/preferences');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue