Add error catching.
This commit is contained in:
parent
fa7bd26a54
commit
83ea862261
8
index.js
8
index.js
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue