mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-11 01:44:58 -06:00
WebUI: always provide event variable
This is unifying coding style and avoid wrong usages. PR #22676.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
window.addEventListener("DOMContentLoaded", (event) => {
|
||||
document.getElementById("cancelBtn").focus();
|
||||
document.getElementById("cancelBtn").addEventListener("click", (e) => {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user