Browse Source

Show nothing on desktop when widget fails to retrieve information (#2)

* Show nothing on desktop when widget fails to retrieve information

* Switch to an arrow function
master
Benjamin Scharf 4 years ago
committed by Shadowfacts
parent
commit
2051a80ffc
  1. 2
      src/generate.js

2
src/generate.js

@ -37,7 +37,7 @@ const cheerio = require("cheerio");
axios.get(`https://github.com/${options.user}`)
.then(generate)
.catch(console.error);
.catch(() => {});
function generate(res) {
console.log(`<svg id="github-activity" width="${53 * options.size}" height="${7 * (options.size)}">`);

Loading…
Cancel
Save