Skip to content

Commit bc0a356

Browse files
committed
close cookify after the cookie setted and refreshed the page
1 parent 67d368d commit bc0a356

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/hooks/useCookie.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ export const useApplyCookie = async (cookie: CookieData) => {
7373
chrome.tabs.reload(tab.id);
7474
}
7575
toast.dismiss(t.id);
76+
77+
if (window.close) // close Cookify (don't need anymore)
78+
window.close();
79+
7680
}}
7781
className="text-sm h-8"
7882
>

0 commit comments

Comments
 (0)