constants at the top
Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
parent
a6a3cae5e9
commit
a3e8646ea7
2 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
const { platform } = require('../utils');
|
||||
const assets = require('../../common/assets');
|
||||
|
||||
const size = 32;
|
||||
const loaderWidth = 5;
|
||||
const loaderColor = '#0090ed';
|
||||
|
||||
|
@ -19,7 +20,6 @@ function drawCircle(canvas, context, color, lineWidth, outerWidth, percent) {
|
|||
|
||||
function drawNewFavicon(progressRatio) {
|
||||
const canvas = document.createElement('canvas');
|
||||
const size = 32;
|
||||
const context = canvas.getContext('2d');
|
||||
drawCircle(canvas, context, '#efefef', loaderWidth, size, 1);
|
||||
drawCircle(canvas, context, loaderColor, loaderWidth, size, progressRatio);
|
||||
|
|
|
@ -9,7 +9,6 @@ module.exports = function(state, emit) {
|
|||
.filter(archive => !archive.expired)
|
||||
.map(archive => archiveTile(state, emit, archive));
|
||||
let left = '';
|
||||
|
||||
if (state.uploading) {
|
||||
left = archiveTile.uploading(state, emit);
|
||||
} else if (state.archive.numFiles > 0) {
|
||||
|
|
Loading…
Reference in a new issue