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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue