Merge pull request #1086 from mozilla/fix-android-equals-1-npm-start
Make ANDROID=1 npm start work again, as it broke at some point
This commit is contained in:
commit
742b97cb4b
1 changed files with 4 additions and 2 deletions
|
@ -21,7 +21,10 @@ module.exports = function(app, devServer) {
|
|||
const index = devServer.middleware.fileSystem
|
||||
.readFileSync(devServer.middleware.getFilenameFromUrl('/android.html'))
|
||||
.toString()
|
||||
.replace('<base href="file:///android_asset/" />', '');
|
||||
.replace(
|
||||
'<base href="file:///android_asset/" />',
|
||||
'<base href="http://localhost:8080/" />'
|
||||
);
|
||||
res.set('Content-Type', 'text/html');
|
||||
res.send(index);
|
||||
}
|
||||
|
@ -30,7 +33,6 @@ module.exports = function(app, devServer) {
|
|||
app.get('/', android);
|
||||
app.get('/legal', android);
|
||||
app.get(`/share/:id${ID_REGEX}`, android);
|
||||
app.get(`/download/:id${ID_REGEX}`, android);
|
||||
app.get('/completed', android);
|
||||
app.get('/preferences', android);
|
||||
app.get('/options', android);
|
||||
|
|
Loading…
Reference in a new issue