From c32c7cea240916754934f50b989d40de415f858c Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 6 May 2024 00:25:43 +0800 Subject: [PATCH] Update web_src/js/bootstrap.js --- web_src/js/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/bootstrap.js b/web_src/js/bootstrap.js index d300c81e8d..8339b4bd82 100644 --- a/web_src/js/bootstrap.js +++ b/web_src/js/bootstrap.js @@ -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; }