1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-03 02:37:21 +02:00

Fix regression in previous commit

Related feedback:
https://github.com/uBlockOrigin/uAssets/issues/23652#issuecomment-2105555721

Related commit:
2ccc3135c1
This commit is contained in:
Raymond Hill 2024-05-11 19:05:14 -04:00
parent 661c1c6e16
commit 509dba1441
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1055,13 +1055,13 @@ function setLocalStorageItemFn(
if ( trusted ) {
if ( value.includes('$now$') ) {
value.replaceAll('$now$', Date.now());
value = value.replaceAll('$now$', Date.now());
}
if ( value.includes('$currentDate$') ) {
value.replaceAll('$currentDate$', `${Date()}`);
value = value.replaceAll('$currentDate$', `${Date()}`);
}
if ( value.includes('$currentISODate$') ) {
value.replaceAll('$currentISODate$', (new Date()).toISOString());
value = value.replaceAll('$currentISODate$', (new Date()).toISOString());
}
} else {
const normalized = value.toLowerCase();