mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-06 05:14:46 +02:00
🚨 Fix lint warn, single quotes in clock
This commit is contained in:
parent
e48f8418b9
commit
c3749c6837
@ -40,7 +40,7 @@ export default {
|
|||||||
return !this.options.hideSeconds;
|
return !this.options.hideSeconds;
|
||||||
},
|
},
|
||||||
use12Hour() {
|
use12Hour() {
|
||||||
if (typeof this.options.use12Hour === "boolean") return this.options.use12Hour;
|
if (typeof this.options.use12Hour === 'boolean') return this.options.use12Hour;
|
||||||
// this is the default, it gets computed by the DateTimeFormat implementation
|
// this is the default, it gets computed by the DateTimeFormat implementation
|
||||||
return Intl.DateTimeFormat(this.timeFormat, { timeZone: this.timeZone, hour: 'numeric' }).resolvedOptions().hour12 ?? false;
|
return Intl.DateTimeFormat(this.timeFormat, { timeZone: this.timeZone, hour: 'numeric' }).resolvedOptions().hour12 ?? false;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user