mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
fix edge case for getting metadata
This commit is contained in:
parent
68ee684a1a
commit
2b926ba610
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ export async function getMetaData(url: string) {
|
|||
let favicon = _favicon.trim().length > 0 ? _favicon.trim() : 'https://supermemory.dhr.wtf/web.svg'
|
||||
if (favicon.startsWith("/")) {
|
||||
favicon = baseUrl + favicon
|
||||
} else if (favicon.startsWith("./")) {
|
||||
favicon = baseUrl + favicon.slice(1)
|
||||
}
|
||||
|
||||
// Prepare the metadata object
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue