updated deps
This commit is contained in:
parent
883728570e
commit
ff9be6a213
4 changed files with 376 additions and 194 deletions
|
@ -62,7 +62,7 @@ if (process.env.NODE_ENV === 'production') {
|
|||
fileInfo: null
|
||||
};
|
||||
|
||||
const app = routes(choo());
|
||||
const app = routes(choo({ hash: true }));
|
||||
// eslint-disable-next-line require-atomic-updates
|
||||
window.app = app;
|
||||
app.use(experiments);
|
||||
|
|
|
@ -2,7 +2,7 @@ const choo = require('choo');
|
|||
const download = require('./ui/download');
|
||||
const body = require('./ui/body');
|
||||
|
||||
module.exports = function(app = choo()) {
|
||||
module.exports = function(app = choo({ hash: true })) {
|
||||
app.route('/', body(require('./ui/home')));
|
||||
app.route('/download/:id', body(download));
|
||||
app.route('/download/:id/:key', body(download));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue