favicon progress bar

Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
Ashesh Vidyut 2019-03-21 00:07:46 +05:30 committed by timvisee
parent 60146541f2
commit 0460bd2e97
No known key found for this signature in database
GPG key ID: B8DB720BC383E172
3 changed files with 55 additions and 0 deletions

View file

@ -3,6 +3,7 @@
const html = require('choo/html');
const raw = require('choo/html/raw');
const assets = require('../../common/assets');
const faviconProgressBar = require('./faviconProgressbar');
const {
bytes,
copyToClipboard,
@ -397,6 +398,7 @@ module.exports.uploading = function(state, emit) {
const progress = state.transfer.progressRatio;
const progressPercent = percent(progress);
const archive = state.archive;
faviconProgressBar.updateFavicon(progressPercent);
return html`
<send-upload-area
id="${archive.id}"