Merge pull request #13026 from Snuffleupagus/crypto-classes

Convert code in `src/core/crypto.js` to use "normal" classes
This commit is contained in:
Tim van der Meij 2021-02-26 22:39:30 +01:00 committed by GitHub
commit 55786a4880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 425 additions and 475 deletions

File diff suppressed because it is too large Load Diff

View File

@ -884,9 +884,12 @@ function isArrayEqual(arr1, arr2) {
if (arr1.length !== arr2.length) {
return false;
}
return arr1.every(function (element, index) {
return element === arr2[index];
});
for (let i = 0, ii = arr1.length; i < ii; i++) {
if (arr1[i] !== arr2[i]) {
return false;
}
}
return true;
}
function getModificationDate(date = new Date()) {