@@ -18,6 +19,7 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
}>
} />
} />
+ } />
} />
diff --git a/src/pages/downloader.tsx b/src/pages/downloader.tsx
index 591444a..12300ea 100644
--- a/src/pages/downloader.tsx
+++ b/src/pages/downloader.tsx
@@ -510,7 +510,7 @@ export default function DownloaderPage() {
}
}}
>
- Suggested (Best)
+ Suggested
{
+ try {
+ await invoke('open_file_with_app', { filePath: url, appName: app }).then(() => {
+ toast({
+ title: 'Opening Link',
+ description: `Opening link with ${app ? app : 'default app'}.`,
+ })
+ });
+ } catch (e) {
+ console.error(e);
+ toast({
+ title: 'Failed to open link',
+ description: 'An error occurred while trying to open the link.',
+ variant: "destructive"
+ })
+ }
+ }
+
+ return (
+
+
+
+ }
+ onClick={() => openLink('https://chromewebstore.google.com/detail/neo-downloader-plus/mehopeailfjmiloiiohgicphlcgpompf', 'chrome')}
+ >
+
+
+ Get Chrome Extension
+
+
from Chrome Web Store
+
+
+
+ Get Now
+
+ }
+ onClick={() => openLink('https://addons.mozilla.org/en-US/firefox/addon/neo-downloader-plus', 'firefox')}
+ >
+
+
+ Get Firefox Extension
+
+ from Mozilla Addons Store
+
+
+
+
+
+
+
+
+
+ * These links opens with coresponding browsers only. Make sure the browser is installed befor clicking the link
+
+ )
+}
\ No newline at end of file
diff --git a/src/routes.ts b/src/routes.ts
index b91bc8d..196d850 100644
--- a/src/routes.ts
+++ b/src/routes.ts
@@ -1,4 +1,4 @@
-import { Bell, Download, Settings, SquarePlay } from "lucide-react";
+import { Download, Puzzle, Settings, SquarePlay } from "lucide-react";
import { RoutesObj } from "@/types/route";
export const AllRoutes: Array = [
@@ -12,14 +12,14 @@ export const AllRoutes: Array = [
url: "/library",
icon: SquarePlay,
},
+ {
+ title: "Extension",
+ url: "/extension",
+ icon: Puzzle,
+ },
{
title: "Settings",
url: "/settings",
icon: Settings,
- },
- {
- title: "Notifications",
- url: "/notifications",
- icon: Bell,
}
];
\ No newline at end of file