mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-07 08:02:30 -06:00
WebUI: prefer arrow function in callbacks
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
window.addEvent("domready", function() {
|
||||
window.addEvent("domready", () => {
|
||||
new Keyboard({
|
||||
defaultEventType: "keydown",
|
||||
events: {
|
||||
@@ -26,7 +26,7 @@
|
||||
}).activate();
|
||||
|
||||
$("trackersUrls").focus();
|
||||
$("addTrackersButton").addEvent("click", function(e) {
|
||||
$("addTrackersButton").addEvent("click", (e) => {
|
||||
new Event(e).stop();
|
||||
const hash = new URI().getData("hash");
|
||||
new Request({
|
||||
|
||||
Reference in New Issue
Block a user