fixed problem with profile inactivation after adding via deeplink on windows

This commit is contained in:
coolcoala
2025-07-21 02:46:41 +03:00
parent 50beb913de
commit a32c973ab8
3 changed files with 7 additions and 20 deletions

View File

@@ -44,9 +44,9 @@ const handleNoticeMessage = (
switch (status) {
case "import_sub_url::ok":
mutate("getProfiles");
navigate("/", { state: { activateProfile: msg } });
navigate("/");
showNotice("success", t("Import Subscription Successful"));
window.dispatchEvent(new CustomEvent('activate-profile', { detail: msg }));
sessionStorage.setItem('activateProfile', msg);
break;
case "import_sub_url::error":
showNotice("error", msg);