mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 00:38:30 -07:00
include full link in getEventLinks
This commit is contained in:
1 parent
3fd0988a82
commit
e061a82cbc
1 file changed
+3
-1
@@ -9,7 +9,9 @@ async function getEventLinks() {
|
||||
let links = root.querySelectorAll(
|
||||
"#events-list-upcoming h3.c-card-event--result__headline"
|
||||
);
|
||||
links = links.map((html) => html.firstChild.getAttribute("href"));
|
||||
links = links.map(
|
||||
(html) => "https://www.ufc.com" + html.firstChild.getAttribute("href")
|
||||
);
|
||||
return links;
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
Reference in new issue
Block a user