mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: ensure consistent shorthand syntax
This commit is contained in:
@@ -34,6 +34,7 @@ export default [
|
||||
"no-undef": "off",
|
||||
"no-unused-vars": "off",
|
||||
"no-var": "error",
|
||||
"object-shorthand": ["error", "consistent"],
|
||||
"operator-assignment": "error",
|
||||
"prefer-arrow-callback": "error",
|
||||
"prefer-const": "error",
|
||||
|
||||
@@ -22,7 +22,7 @@ window.qBittorrent.MultiRename ??= (() => {
|
||||
|
||||
// Search Options
|
||||
_inner_search: "",
|
||||
setSearch(val) {
|
||||
setSearch: function(val) {
|
||||
this._inner_search = val;
|
||||
this._inner_update();
|
||||
this.onChanged(this.matchedFiles);
|
||||
@@ -33,7 +33,7 @@ window.qBittorrent.MultiRename ??= (() => {
|
||||
|
||||
// Replacement Options
|
||||
_inner_replacement: "",
|
||||
setReplacement(val) {
|
||||
setReplacement: function(val) {
|
||||
this._inner_replacement = val;
|
||||
this._inner_update();
|
||||
this.onChanged(this.matchedFiles);
|
||||
|
||||
Reference in New Issue
Block a user