Hotfix v. 1.18.1
This commit is contained in:
parent
27af2c8c49
commit
ac2d5da41c
|
@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.18.1] - 2020-06-07
|
||||||
|
|
||||||
|
### Compatibility note
|
||||||
|
- Require Firefox >= 55
|
||||||
|
- Require Chrome >= 37
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Hotfix for the endless loop on new log limit ([#545](https://gitlab.com/KevinRoebert/ClearUrls/issues/545), [#541](https://gitlab.com/KevinRoebert/ClearUrls/issues/541), [#539](https://gitlab.com/KevinRoebert/ClearUrls/issues/539))
|
||||||
|
|
||||||
## [1.18.0] - 2020-06-06
|
## [1.18.0] - 2020-06-06
|
||||||
|
|
||||||
### Compatibility note
|
### Compatibility note
|
||||||
|
|
|
@ -157,7 +157,7 @@ function setData(key, value) {
|
||||||
storage[key] = value.split(',');
|
storage[key] = value.split(',');
|
||||||
break;
|
break;
|
||||||
case "logLimit":
|
case "logLimit":
|
||||||
storage[key] = Number(value);
|
storage[key] = Math.max(0, Number(value));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
storage[key] = value;
|
storage[key] = value;
|
||||||
|
|
|
@ -305,7 +305,7 @@ function handleError(error) {
|
||||||
* @param rule the rule that triggered the process
|
* @param rule the rule that triggered the process
|
||||||
*/
|
*/
|
||||||
function pushToLog(beforeProcessing, afterProcessing, rule) {
|
function pushToLog(beforeProcessing, afterProcessing, rule) {
|
||||||
const limit = storage.logLimit;
|
const limit = Math.max(0, storage.logLimit);
|
||||||
if (storage.loggingStatus && limit !== 0 && !isNaN(limit)) {
|
if (storage.loggingStatus && limit !== 0 && !isNaN(limit)) {
|
||||||
while (storage.log.log.length >= limit
|
while (storage.log.log.length >= limit
|
||||||
|| storage.log.log.length >= logThreshold) {
|
|| storage.log.log.length >= logThreshold) {
|
||||||
|
|
|
@ -29,7 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
<!-- Bootstrap CSS -->
|
<!-- Bootstrap CSS -->
|
||||||
<link rel="stylesheet" href="../css/bootstrap.min.css">
|
<link rel="stylesheet" href="../css/bootstrap.min.css">
|
||||||
<link rel="stylesheet" href="../css/dataTables.bootstrap.min.css">
|
|
||||||
<link rel="stylesheet" type="text/css" href="../css/core.css">
|
<link rel="stylesheet" type="text/css" href="../css/core.css">
|
||||||
<style>
|
<style>
|
||||||
td {
|
td {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "ClearURLs",
|
"name": "ClearURLs",
|
||||||
"version": "1.18.0",
|
"version": "1.18.1",
|
||||||
"author": "Kevin Röbert",
|
"author": "Kevin Röbert",
|
||||||
"description": "__MSG_extension_description__",
|
"description": "__MSG_extension_description__",
|
||||||
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",
|
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user