mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 10:09:38 +02:00
Fix typo in code
Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/2570#issuecomment-1491616007
This commit is contained in:
parent
b5d78a07bf
commit
5c85fdbc32
@ -520,13 +520,13 @@ self.addEventListener('hiddenSettingsChanged', ( ) => {
|
||||
) {
|
||||
const d = new Date();
|
||||
// Date in YYYY-MM-DD format - https://stackoverflow.com/a/50130338
|
||||
const ISO8061Date = new Date(d.getTime() +
|
||||
const ISO8601Date = new Date(d.getTime() +
|
||||
(d.getTimezoneOffset()*60000)).toISOString().split('T')[0];
|
||||
const url = new URL(options.docURL);
|
||||
comment =
|
||||
'! ' +
|
||||
this.hiddenSettings.autoCommentFilterTemplate
|
||||
.replace('{{date}}', ISO8061Date)
|
||||
.replace('{{date}}', ISO8601Date)
|
||||
.replace('{{time}}', d.toLocaleTimeString())
|
||||
.replace('{{hostname}}', url.hostname)
|
||||
.replace('{{origin}}', url.origin)
|
||||
|
Loading…
Reference in New Issue
Block a user