summaryrefslogtreecommitdiffstats
path: root/web_src/js/modules
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-12-15 11:04:37 +0800
committerGitHub <noreply@github.com>2023-12-15 03:04:37 +0000
commit6af698fb81b9928c5d88c6bbca4b57229db1c2f3 (patch)
treeb5e424a825ce7d4beada0071bd56e83ced957ef4 /web_src/js/modules
parent94a05a492df8eea9520117be9fe74f4c28c06101 (diff)
downloadgitea-6af698fb81b9928c5d88c6bbca4b57229db1c2f3.tar.gz
gitea-6af698fb81b9928c5d88c6bbca4b57229db1c2f3.zip
Polyfill SubmitEvent for PaleMoon (#28441) (#28478)
Backport #28441 by wxiaoguang Fix #28319 It only polyfills if there is no "SubmitEvent" class, so it has no side effect for most users. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js/modules')
-rw-r--r--web_src/js/modules/tippy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/modules/tippy.js b/web_src/js/modules/tippy.js
index ec7ee2141f..9b2f3691cc 100644
--- a/web_src/js/modules/tippy.js
+++ b/web_src/js/modules/tippy.js
@@ -106,7 +106,7 @@ function switchTitleToTooltip(target) {
/**
* Creating tooltip tippy instance is expensive, so we only create it when the user hovers over the element
* According to https://www.w3.org/TR/DOM-Level-3-Events/#events-mouseevent-event-order , mouseover event is fired before mouseenter event
- * Some old browsers like Pale Moon doesn't support "mouseenter(capture)"
+ * Some browsers like PaleMoon don't support "addEventListener('mouseenter', capture)"
* The tippy by default uses "mouseenter" event to show, so we use "mouseover" event to switch to tippy
* @param e {Event}
*/