mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-09 22:31:10 +00:00
fix: baseUrl should be same as Url
This commit is contained in:
parent
50947c4dc8
commit
1c08c68f6a
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ export async function getMetaData(url: string) {
|
|||
const $ = cheerio.load(html);
|
||||
|
||||
// Extract the base URL
|
||||
const baseUrl = new URL(url).origin;
|
||||
const baseUrl = url
|
||||
|
||||
// Extract title
|
||||
const title = $("title").text().trim();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue