mirror of
https://github.com/shadowfacts/uebersicht-github-activity.git
synced 2025-02-13 12:31:24 +00:00
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…
x
Reference in New Issue
Block a user