WebUI: unify curly bracket usage

This commit is contained in:
Chocobo1
2024-06-07 02:22:57 +08:00
parent 41d8f473b7
commit bf4e0df386
32 changed files with 177 additions and 252 deletions

View File

@@ -29,9 +29,8 @@
<script>
"use strict";
if (window.qBittorrent === undefined) {
if (window.qBittorrent === undefined)
window.qBittorrent = {};
}
window.qBittorrent.InstallSearchPlugin = (function() {
const exports = function() {
@@ -62,7 +61,7 @@
const newPluginOk = function() {
const path = $("newPluginPath").get("value").trim();
if (path)
if (path) {
new Request({
url: "api/v2/search/installPlugin",
method: "post",
@@ -73,6 +72,7 @@
window.qBittorrent.SearchPlugins.closeSearchWindow("installSearchPlugin");
}
}).send();
}
};
init();