2017-08-24 23:54:02 +02:00
|
|
|
const welcome = require('../templates/welcome');
|
|
|
|
const upload = require('../templates/upload');
|
|
|
|
|
|
|
|
module.exports = function(state, emit) {
|
2017-08-31 18:43:36 +02:00
|
|
|
if (state.transfer && state.transfer.iv) {
|
|
|
|
//TODO relying on 'iv' is gross
|
2017-08-24 23:54:02 +02:00
|
|
|
return upload(state, emit);
|
|
|
|
}
|
|
|
|
return welcome(state, emit);
|
|
|
|
};
|