Skip to content

Commit

Permalink
fix default group/channel setting (#2787)
Browse files Browse the repository at this point in the history
* ratio plugin: fix default group setting

* throttle plugin: fix default channel setting
  • Loading branch information
koblack authored Nov 12, 2024
1 parent d9f975d commit 54b979e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/ratio/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ plugin.onLangLoaded = function() {
$("<div>").addClass("col-12 col-md-6").append(
$("<select>").attr({id:"ratDefault"}).append(
$("<option>").val(0).text(theUILang.dontSet),
...Array.from(Array(theWebUI.maxRatio).keys()).map(i => $("<option>").val(i).text(i + 1)),
...Array.from(Array(theWebUI.maxRatio).keys()).map(i => $("<option>").val(i + 1).text(i + 1)),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion plugins/throttle/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ plugin.onLangLoaded = function() {
$("<div>").addClass("col-12 col-md-6").append(
$("<select>").attr({id:"chDefault"}).append(
$("<option>").val(0).text(theUILang.dontSet),
...Array.from(Array(theWebUI.maxThrottle).keys()).map(i => $("<option>").val(i).text(i + 1)),
...Array.from(Array(theWebUI.maxThrottle).keys()).map(i => $("<option>").val(i + 1).text(i + 1)),
),
),
),
Expand Down

0 comments on commit 54b979e

Please sign in to comment.