Add error catching.

This commit is contained in:
Benjamin 2017-10-23 11:32:12 -05:00
parent fa7bd26a54
commit 83ea862261
1 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,13 @@ style: "\
transform: translateX(-50%) translateY(-50%);\
}",
render: () => {
try {
return "<style>#github-activity-widget-index-js { width: 100%; height: 100%; }</style>";
}
catch (err) {
console.log(err);
return ""
}
},
update: (output, domEl) => {
domEl.innerHTML += output;