mirror of https://github.com/gorhill/uBlock.git
Fix regression in previous commit
Related feedback:
https://github.com/uBlockOrigin/uAssets/issues/23652#issuecomment-2105555721
Related commit:
2ccc3135c1
This commit is contained in:
parent
661c1c6e16
commit
509dba1441
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue