diff options
author | silverwind <me@silverwind.io> | 2023-10-08 02:16:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-08 00:16:20 +0000 |
commit | 0bccf078c912eb94223d74af554701e29a5117eb (patch) | |
tree | 8b57236bcced90c60c88d823aceb58dd98d8926b /web_src | |
parent | 3b139fa3a37b2ab42d82370d6835b2f7d7822b1d (diff) | |
download | gitea-0bccf078c912eb94223d74af554701e29a5117eb.tar.gz gitea-0bccf078c912eb94223d74af554701e29a5117eb.zip |
Update JS and PY dependencies (#27501)
- Update all JS and PY dependencies
- Enable eslint `prefer-object-has-own` and autofix issue
- Fix styling on citation buttons
- Tested citation, mermaid, monaco, swagger, katex
Citation button issue was that these buttons were not filled:
<img width="136" alt="Screenshot 2023-10-07 at 14 05 08"
src="https://github.com/go-gitea/gitea/assets/115237/435f0c91-28ac-46b3-bae4-dad768b29c05">
Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/features/emoji.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/emoji.js b/web_src/js/features/emoji.js index d00ff65456..032a3efe8a 100644 --- a/web_src/js/features/emoji.js +++ b/web_src/js/features/emoji.js @@ -23,7 +23,7 @@ for (const key of emojiKeys) { // retrieve HTML for given emoji name export function emojiHTML(name) { let inner; - if (Object.prototype.hasOwnProperty.call(customEmojis, name)) { + if (Object.hasOwn(customEmojis, name)) { inner = `<img alt=":${name}:" src="${assetUrlPrefix}/img/emoji/${name}.png">`; } else { inner = emojiString(name); |