mirror of
https://github.com/timvisee/send.git
synced 2025-10-05 02:19:26 +02:00
10 lines
289 B
JavaScript
10 lines
289 B
JavaScript
const welcome = require('../templates/welcome');
|
|
const upload = require('../templates/upload');
|
|
|
|
module.exports = function(state, emit) {
|
|
if (state.transfer && state.transfer.iv) {
|
|
//TODO relying on 'iv' is gross
|
|
return upload(state, emit);
|
|
}
|
|
return welcome(state, emit);
|
|
};
|