From 52b4c382cb5655de434458dc961a7b5af8dcc5ec Mon Sep 17 00:00:00 2001 From: Donovan Preston Date: Thu, 10 Jan 2019 15:08:16 -0500 Subject: [PATCH] Make ANDROID=1 npm start work again, as it broke at some point --- server/bin/dev.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/bin/dev.js b/server/bin/dev.js index 574988a8..b1bfb713 100644 --- a/server/bin/dev.js +++ b/server/bin/dev.js @@ -21,7 +21,10 @@ module.exports = function(app, devServer) { const index = devServer.middleware.fileSystem .readFileSync(devServer.middleware.getFilenameFromUrl('/android.html')) .toString() - .replace('', ''); + .replace( + '', + '' + ); res.set('Content-Type', 'text/html'); res.send(index); } @@ -30,7 +33,7 @@ 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(`/download/:id${ID_REGEX}/:key`, android); app.get('/completed', android); app.get('/preferences', android); app.get('/options', android);