-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update version to 1.11.1 and change SVG icon fetching method
- Loading branch information
1 parent
1ce720f
commit 30be51c
Showing
2 changed files
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>` | ||
} |