Skip to content

Commit

Permalink
Ignore resource error caused by extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
MuTsunTsai committed Dec 31, 2024
1 parent c25dc19 commit 2c52cf1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/html/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@
* @param error {string}
*/
function setResErr(error) {
if(error.indexOf("gtag") >= 0) return; // Ignore GA loading error
// ignore errors caused by extensions (also GA)
if(error.indexOf("http") == 0 && error.indexOf(location.origin) < 0) return;

if(!resErr) {
resErr = error;
setTimeout(self.callback, 0);
Expand Down

0 comments on commit 2c52cf1

Please # to comment.