Skip to content

Commit a3576ea

Browse files
committed
Add support for $currentISODate$ in trusted-set-cookie scriptlet
Related discussion: uBlockOrigin/uAssets#20789 (comment)
1 parent 37d31a8 commit a3576ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assets/resources/scriptlets.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4248,6 +4248,9 @@ function trustedSetCookie(
42484248
if ( value.includes('$currentDate$') ) {
42494249
value = value.replaceAll('$currentDate$', time.toUTCString());
42504250
}
4251+
if ( value.includes('$currentISODate$') ) {
4252+
value = value.replaceAll('$currentISODate$', time.toISOString());
4253+
}
42514254

42524255
let expires = '';
42534256
if ( offsetExpiresSec !== '' ) {

0 commit comments

Comments
 (0)