1
0
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:
Raymond Hill 2023-03-31 08:26:53 -04:00
parent b5d78a07bf
commit 5c85fdbc32
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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)