diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-03-20 16:17:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 16:17:56 +0100 |
commit | 529bac1950adf4fb72433cb67f66b0eec49224fe (patch) | |
tree | 2d92f6b183a7e8bb53dc724bfdda93c5657f6353 /package.json | |
parent | Add CHANGELOG for 1.19.0 (#23583) (diff) | |
download | forgejo-529bac1950adf4fb72433cb67f66b0eec49224fe.tar.xz forgejo-529bac1950adf4fb72433cb67f66b0eec49224fe.zip |
Polyfill the window.customElements (#23592)
Related: #23590
Reference:
https://github.com/webcomponents/polyfills/tree/master/packages/webcomponentsjs
It seems that there are some users using old browsers, so the
`window.customElements` need polyfill.
The Custom Elements would help a lot for Gitea's UI problems, including:
* `<span class="js-pretty-number">`
* `<time data-format>`
So it's worth get polyfill.
---------
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json index 9ff4ac2783..db7cf1154b 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@mcaptcha/vanilla-glue": "0.1.0-alpha-3", "@primer/octicons": "18.2.0", "@vue/compiler-sfc": "3.2.47", + "@webcomponents/custom-elements": "1.5.1", "add-asset-webpack-plugin": "2.0.1", "ansi-to-html": "0.7.2", "asciinema-player": "3.2.0", |