Skip to content

Commit acdc1aa

Browse files
authored
Update web_src/js/webcomponents/absolute-date.ts
1 parent bdcc1ca commit acdc1aa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

web_src/js/webcomponents/absolute-date.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ window.customElements.define('absolute-date', class extends HTMLElement {
1717
update = () => {
1818
const opt: Record<string, string> = {};
1919
for (const attr of ['year', 'month', 'weekday', 'day']) {
20-
if (this.getAttribute(attr)) {
21-
opt[attr] = this.getAttribute(attr);
22-
}
20+
if (this.getAttribute(attr)) opt[attr] = this.getAttribute(attr);
2321
}
2422
const lang = this.closest('[lang]')?.getAttribute('lang') ||
2523
this.ownerDocument.documentElement.getAttribute('lang') || '';

0 commit comments

Comments
 (0)