mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-16 04:13:12 +00:00
fix: instance url of extension
This commit is contained in:
parent
4b7c494163
commit
c196cbc7d5
@ -12,7 +12,7 @@ chrome.webRequest.onBeforeRequest.addListener(
|
|||||||
|
|
||||||
const shortcutName = getShortcutNameFromUrl(param.url);
|
const shortcutName = getShortcutNameFromUrl(param.url);
|
||||||
if (shortcutName) {
|
if (shortcutName) {
|
||||||
const instanceUrl = (await storage.getItem<string>("domain")) || "";
|
const instanceUrl = (await storage.getItem<string>("instance_url")) || "";
|
||||||
return chrome.tabs.update({ url: `${instanceUrl}/s/${shortcutName}` });
|
return chrome.tabs.update({ url: `${instanceUrl}/s/${shortcutName}` });
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
@ -10,7 +10,7 @@ interface Props {
|
|||||||
|
|
||||||
const ShortcutView = (props: Props) => {
|
const ShortcutView = (props: Props) => {
|
||||||
const { shortcut } = props;
|
const { shortcut } = props;
|
||||||
const [domain] = useStorage<string>("domain", "");
|
const [domain] = useStorage<string>("instance_url", "");
|
||||||
const favicon = getFaviconWithGoogleS2(shortcut.link);
|
const favicon = getFaviconWithGoogleS2(shortcut.link);
|
||||||
|
|
||||||
const handleShortcutLinkClick = () => {
|
const handleShortcutLinkClick = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user