1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-02-02 12:27:27 +01:00

Validation of numbers changed (#92)

This commit is contained in:
nobody 2020-09-08 20:53:04 +02:00
parent 08b04f5fb4
commit f20205627e
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -235,7 +235,7 @@ storageManager._validateStrings = function (value) {
};
storageManager._validateNumbers = function (value) {
return value > 0 && value < Number.MAX_VALUE ? value : 0;
return isNaN(value) ? 0 : value;
};
storageManager.data = {};