fixed initial page load rendering for expired downloads and when the upload list isn't empty. fixes #1069 and fixes #1021
This commit is contained in:
parent
e1bbff0047
commit
06b25dcba6
3 changed files with 11 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
const html = require('choo/html');
|
||||
const archiveTile = require('./archiveTile');
|
||||
const intro = require('./intro');
|
||||
const notFound = require('./notFound');
|
||||
|
||||
function password(state, emit) {
|
||||
const fileInfo = state.fileInfo;
|
||||
|
@ -81,6 +82,9 @@ module.exports = function(state, emit) {
|
|||
let content = '';
|
||||
if (!state.fileInfo) {
|
||||
state.fileInfo = createFileInfo(state);
|
||||
if (!state.fileInfo.nonce) {
|
||||
return notFound(state);
|
||||
}
|
||||
}
|
||||
|
||||
if (!state.transfer && !state.fileInfo.requiresPassword) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue