fixed welcome page flicker

This commit is contained in:
Danny Coates 2018-02-05 13:28:38 -08:00
parent 81ee6de0a3
commit 77d5f1e603
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 3 additions and 1 deletions

View File

@ -5,8 +5,10 @@ const fileList = require('../templates/fileList');
const { bytes, fadeOut } = require('../utils');
module.exports = function(state, emit) {
// the page flickers if both the server and browser set 'fadeIn'
const fade = state.layout ? '' : 'fadeIn';
const div = html`
<div id="page-one" class="fadeIn">
<div id="page-one" class="${fade}">
<div class="title">${state.translate('uploadPageHeader')}</div>
<div class="description">
<div>${state.translate('uploadPageExplainer')}</div>