fix: fix syntax

dev
gravel 6 months ago
parent 58a9f8eac6
commit 7497bfc88d
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -90,6 +90,7 @@ export const dom = {
const joinLink = row.querySelector('.td_join_url a[href]').getAttribute('href');
const identifier = row.getAttribute(ATTRIBUTES.ROW.IDENTIFIER);
const joinURL = new URL(joinLink);
const dateCreated = RoomInfo.getRoomCreationDate(identifier);
/** @type {string[]} */
return {
language_flag: row.querySelector('.td_language').textContent.trim(),
@ -106,7 +107,7 @@ export const dom = {
icon: row.getAttribute(ATTRIBUTES.ROW.ROOM_ICON),
has_icon: row.getAttribute(ATTRIBUTES.ROW.ROOM_ICON).trim() != "",
icon_safety: row.getAttribute(ATTRIBUTES.ROW.ROOM_ICON_SAFETY),
date_created: RoomInfo.getRoomCreationDate(identifier),
date_created: dateCreated,
creation_datestring: dateCreated.toLocaleDateString(undefined, {dateStyle: "medium"})
};
},

Loading…
Cancel
Save