MCPcopy Index your code
hub / github.com/refined-github/refined-github / appendError

Function appendError

source/options-preflight.js:1–4  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

1function appendError(error) {
2 // eslint-disable-next-line select-dom/prefer -- No build here
3 document.querySelector('#js-failed').append('\n', error);
4}
5
6globalThis.addEventListener('error', event => {
7 appendError(event.error ?? event.message);

Callers 1

Calls 2

querySelectorMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected