Skip to content

Commit

Permalink
chore: update version to 1.11.1 and change SVG icon fetching method
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenvanduocit committed Dec 3, 2024
1 parent 1ce720f commit 30be51c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
22 changes: 11 additions & 11 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"id": "open-gate",
"name": "Open Gate",
"version": "1.11.6",
"minAppVersion": "0.15.0",
"description": "Embed any website to Obsidian, you have anything you need in one place. You can browse website and take notes at the same time. e.g. Ask ChatGPT and copy the answer directly to your note.",
"author": "duocnv",
"authorUrl": "https://twitter.com/duocdev",
"fundingUrl": {
"Buy Me a Coffee": "https://paypal.me/duocnguyen",
"Follow me": "https://twitter.com/duocdev"
}
"id": "open-gate",
"name": "Open Gate",
"version": "1.11.1",
"minAppVersion": "0.15.0",
"description": "Embed any website to Obsidian, you have anything you need in one place. You can browse website and take notes at the same time. e.g. Ask ChatGPT and copy the answer directly to your note.",
"author": "duocnv",
"authorUrl": "https://twitter.com/duocdev",
"fundingUrl": {
"Buy Me a Coffee": "https://paypal.me/duocnguyen",
"Follow me": "https://twitter.com/duocdev"
}
}
7 changes: 3 additions & 4 deletions src/fns/getSvgIcon.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const getSvgIcon = (siteUrl: string): string => {
const siteId = encodeURIComponent(btoa(siteUrl))

return `<svg viewBox="0 0 100 100"><image href="https://fetch-favicon.fly.dev/favicon/${siteId}" height="100" width="100" /></svg>`
}
const domain = new URL(siteUrl).hostname
return `<svg viewBox="0 0 100 100"><image href="https://icon.horse/icon/${domain}" height="100" width="100" /></svg>`
}

0 comments on commit 30be51c

Please sign in to comment.