diff --git a/src/main/index.ts b/src/main/index.ts
index a902be35..9e91c349 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -89,7 +89,12 @@ const handleDeepLinkPath = (uri?: string) => {
}
if (url.host === "profile") {
- WindowManager.redirect(`profile${url.search}`);
+ const userId = url.searchParams.get("userId");
+
+ if (userId) {
+ WindowManager.redirect(`profile/${userId}`);
+ }
+
return;
}
diff --git a/src/renderer/src/constants.ts b/src/renderer/src/constants.ts
index 9db659dc..3706d7d2 100644
--- a/src/renderer/src/constants.ts
+++ b/src/renderer/src/constants.ts
@@ -15,4 +15,4 @@ export const DOWNLOADER_NAME = {
export const MAX_MINUTES_TO_SHOW_IN_PLAYTIME = 120;
-export const WEB_STORE_URL = "https://hydrathemes.shop";
+export const THEME_WEB_STORE_URL = "https://hydrathemes.shop";
diff --git a/src/renderer/src/helpers.ts b/src/renderer/src/helpers.ts
index e7f7ce96..ce66b37e 100644
--- a/src/renderer/src/helpers.ts
+++ b/src/renderer/src/helpers.ts
@@ -1,6 +1,7 @@
import type { GameShop } from "@types";
import Color from "color";
+import { THEME_WEB_STORE_URL } from "./constants";
export const formatDownloadProgress = (
progress?: number,
@@ -61,7 +62,7 @@ export const injectCustomCss = (css: string) => {
currentCustomCss.remove();
}
- if (css.startsWith("https://hydrathemes.shop/")) {
+ if (css.startsWith(THEME_WEB_STORE_URL)) {
const link = document.createElement("link");
link.id = "custom-css";
link.rel = "stylesheet";
diff --git a/src/renderer/src/pages/settings/aparence/components/theme-actions.tsx b/src/renderer/src/pages/settings/aparence/components/theme-actions.tsx
index 3be3cb51..fc8fc53c 100644
--- a/src/renderer/src/pages/settings/aparence/components/theme-actions.tsx
+++ b/src/renderer/src/pages/settings/aparence/components/theme-actions.tsx
@@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next";
import { AddThemeModal, DeleteAllThemesModal } from "../index";
import "./theme-actions.scss";
import { useState } from "react";
-import { WEB_STORE_URL } from "@renderer/constants";
+import { THEME_WEB_STORE_URL } from "@renderer/constants";
interface ThemeActionsProps {
onListUpdated: () => void;
@@ -41,7 +41,7 @@ export const ThemeActions = ({
theme="primary"
className="settings-appearance__button"
onClick={() => {
- window.open(WEB_STORE_URL, "_blank");
+ window.open(THEME_WEB_STORE_URL, "_blank");
}}
>