mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-16 06:05:37 +07:00
Hotfix v. 1.18.1
This commit is contained in:
@@ -157,7 +157,7 @@ function setData(key, value) {
|
||||
storage[key] = value.split(',');
|
||||
break;
|
||||
case "logLimit":
|
||||
storage[key] = Number(value);
|
||||
storage[key] = Math.max(0, Number(value));
|
||||
break;
|
||||
default:
|
||||
storage[key] = value;
|
||||
|
||||
@@ -305,7 +305,7 @@ function handleError(error) {
|
||||
* @param rule the rule that triggered the process
|
||||
*/
|
||||
function pushToLog(beforeProcessing, afterProcessing, rule) {
|
||||
const limit = storage.logLimit;
|
||||
const limit = Math.max(0, storage.logLimit);
|
||||
if (storage.loggingStatus && limit !== 0 && !isNaN(limit)) {
|
||||
while (storage.log.log.length >= limit
|
||||
|| storage.log.log.length >= logThreshold) {
|
||||
|
||||
Reference in New Issue
Block a user