send/app/routes/download.js
2017-08-25 09:44:52 -07:00

9 lines
238 B
JavaScript

const preview = require('../templates/preview');
const download = require('../templates/download');
module.exports = function(state, emit) {
if (state.transfer) {
return download(state, emit);
}
return preview(state, emit);
};