Skip to content

Commit

Permalink
Ignore errors that come from 3rd party code
Browse files Browse the repository at this point in the history
The most common error we get is:
error: null
message: "Script error."
source: ":0:0"

which we can't do anything about
  • Loading branch information
canadianveggie committed Dec 11, 2024
1 parent a682e0c commit a756d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ <h2>Sharing theme</h2>

window.onerror = function onError(message, url, lineNo, columnNo, error) {
try {
if (url && url.includes("extension://")) {
if (!url || url.includes("extension://")) {
// Ignore problems with extensions
return false;
}
Expand Down

0 comments on commit a756d04

Please sign in to comment.