Update web_src/js/bootstrap.js

This commit is contained in:
wxiaoguang 2024-05-06 00:25:43 +08:00 committed by GitHub
parent 219619c420
commit c32c7cea24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ function shouldIgnoreError(err) {
'/assets/js/monaco.', // https://github.com/go-gitea/gitea/issues/30861 , https://github.com/microsoft/monaco-editor/issues/4496
];
for (const pattern of ignorePatterns) {
if (err.stack.includes(pattern)) return true;
if (err.stack?.includes(pattern)) return true;
}
return false;
}