Skip to content

Commit

Permalink
Catch the error properly
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Mar 19, 2024
1 parent 7a5c1e4 commit fcfa1e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/readthedocs-addons.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/readthedocs-addons.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/readthedocs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export function getReadTheDocsConfig(sendUrlParam) {
document,
data,
);
})
.catch((error) => {
console.error(error);
});
} else {
dispatchEvent(EVENT_READTHEDOCS_ADDONS_DATA_READY, document, data);
Expand Down

0 comments on commit fcfa1e6

Please sign in to comment.