mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 09:02:31 -06:00
WebUI: unify curly bracket usage
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user