chore: add deprecation warning for regular browsers

This commit is contained in:
zhom
2026-01-11 21:07:50 +04:00
parent 6c632abc4b
commit 27ad2a8bbe
2 changed files with 33 additions and 0 deletions
+1
View File
@@ -206,6 +206,7 @@
"venv",
"vercel",
"VERYSILENT",
"wayfern",
"webgl",
"webrtc",
"winreg",
+32
View File
@@ -752,6 +752,38 @@ export default function Home() {
}
}, [profiles]);
// Show warning for non-wayfern/camoufox profiles (support ending March 1, 2026)
useEffect(() => {
if (profiles.length === 0) return;
const unsupportedProfiles = profiles.filter(
(p) => p.browser !== "wayfern" && p.browser !== "camoufox",
);
if (unsupportedProfiles.length > 0) {
const unsupportedNames = unsupportedProfiles
.map((p) => p.name)
.join(", ");
showToast({
id: "browser-support-ending-warning",
type: "error",
title: "Browser support ending soon",
description: `Support for the following profiles will be removed on March 1, 2026: ${unsupportedNames}. Please migrate to Wayfern or Camoufox profiles.`,
duration: 15000,
action: {
label: "Learn more",
onClick: () => {
const event = new CustomEvent("url-open-request", {
detail: "https://github.com/zhom/donutbrowser/discussions",
});
window.dispatchEvent(event);
},
},
});
}
}, [profiles]);
// Check permissions when they are initialized
useEffect(() => {
if (isInitialized) {