Hard limit for the log of 5000 entries

This commit is contained in:
Kevin Röbert
2020-06-05 21:50:03 +02:00
parent 0acd24d716
commit 762d83e46c
10 changed files with 16 additions and 16 deletions

View File

@@ -65,7 +65,7 @@ function save()
.then(() => saveData("ruleURL", $('input[name=ruleURL]').val()))
.then(() => saveData("hashURL", $('input[name=hashURL]').val()))
.then(() => saveData("types", $('input[name=types]').val()))
.then(() => saveData("logLimit", $('input[name=logLimit]').val()))
.then(() => saveData("logLimit", Math.max(0, Math.min(5000, $('input[name=logLimit]').val()))))
.then(() => browser.runtime.sendMessage({
function: "setBadgedStatus",
params: []