Skip to content

Commit a838f11

Browse files
committed
Get index for adding filter suggestion from hidden count input
1 parent b4c49e6 commit a838f11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extension/options/js/options.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ function saveFilterSuggestions(showAlert = true) {
2626
}, 500);
2727
}
2828

29-
function addFilterSuggestionDiv(index) {
29+
function addFilterSuggestionDiv() {
3030
let count = $("#filter_suggestion_count");
31+
var index = parseInt(count.val());
3132

3233
let img = $('<img>', {
3334
class: "close",

0 commit comments

Comments
 (0)