This commit is contained in:
Benjamin Scharf 2017-10-23 16:39:48 +00:00 committed by GitHub
commit f64c768b58
1 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,13 @@ style: "\
transform: translateX(-50%) translateY(-50%);\
}",
render: () => {
return "<style>#github-activity-widget-index-js { width: 100%; height: 100%; }</style>";
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;