diff options
author | silverwind <me@silverwind.io> | 2024-04-27 13:28:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 11:28:28 +0000 |
commit | 238eb3ff9f36bcf7b4637957ae2dd98446105894 (patch) | |
tree | f1f049c302b61214aa919894cba37205ca7612aa /web_src | |
parent | b2abac5e5ff05362e2d200c99cf792e7c3ba1330 (diff) | |
download | gitea-238eb3ff9f36bcf7b4637957ae2dd98446105894.tar.gz gitea-238eb3ff9f36bcf7b4637957ae2dd98446105894.zip |
Update JS dependencies (#30713)
- Update all JS dependencies
- Remove
[now-unnecessary](https://github.com/microsoft/monaco-editor/issues/4325)
monaco workaround
- Update stylelint config for new rule
- Tested Monaco, Swagger UI, Mermaid
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/bootstrap.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/web_src/js/bootstrap.js b/web_src/js/bootstrap.js index 6cca37f7ca..e466d0b169 100644 --- a/web_src/js/bootstrap.js +++ b/web_src/js/bootstrap.js @@ -6,18 +6,10 @@ // This file must be imported before any lazy-loading is being attempted. __webpack_public_path__ = `${window.config?.assetUrlPrefix ?? '/assets'}/`; -const filteredErrors = new Set([ - 'getModifierState is not a function', // https://github.com/microsoft/monaco-editor/issues/4325 -]); - export function showGlobalErrorMessage(msg) { const pageContent = document.querySelector('.page-content'); if (!pageContent) return; - for (const filteredError of filteredErrors) { - if (msg.includes(filteredError)) return; - } - // compact the message to a data attribute to avoid too many duplicated messages const msgCompact = msg.replace(/\W/g, '').trim(); let msgDiv = pageContent.querySelector(`.js-global-error[data-global-error-msg-compact="${msgCompact}"]`); |