|
|
|
@ -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"})
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|