mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 06:32:29 -06:00
WebUI: prefer arrow function in callbacks
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
}
|
||||
}).activate();
|
||||
|
||||
window.addEvent("domready", function() {
|
||||
window.addEvent("domready", () => {
|
||||
const uriAction = window.qBittorrent.Misc.safeTrim(new URI().getData("action"));
|
||||
const uriHashes = window.qBittorrent.Misc.safeTrim(new URI().getData("hashes"));
|
||||
const uriCategoryName = window.qBittorrent.Misc.safeTrim(new URI().getData("categoryName"));
|
||||
@@ -52,7 +52,7 @@
|
||||
$("categoryName").focus();
|
||||
}
|
||||
|
||||
$("categoryNameButton").addEvent("click", function(e) {
|
||||
$("categoryNameButton").addEvent("click", (e) => {
|
||||
new Event(e).stop();
|
||||
|
||||
const savePath = $("savePath").value.trim();
|
||||
|
||||
Reference in New Issue
Block a user