made variable name more relevant

Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
Ashesh Vidyut
2019-03-21 00:12:12 +05:30
committed by timvisee
parent 0460bd2e97
commit 1cd4adfc2a

View File

@@ -37,12 +37,12 @@ module.exports.updateFavicon = function(percentageString) {
context.stroke();
};
const drawNewGraph = function() {
const drawNewFavicon = function() {
drawCircle('#efefef', lineWidth, 100 / 100);
drawCircle(color, lineWidth, percentage / 100);
};
drawNewGraph(link);
drawNewFavicon(link);
link.href = canvas.toDataURL();
document.getElementsByTagName('head')[0].appendChild(link);
}