Further stabilization of wikipedia box
This commit is contained in:
parent
393d5d8932
commit
a89d303ecd
15 changed files with 169 additions and 109 deletions
|
@ -61,7 +61,6 @@ export default class Wikipedia {
|
|||
|
||||
const links = Array.from(content.getElementsByTagName("a"))
|
||||
|
||||
console.log("Links are", links)
|
||||
// Rewrite relative links to absolute links + open them in a new tab
|
||||
links.filter(link => link.getAttribute("href")?.startsWith("/") ?? false).
|
||||
forEach(link => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue