feat: allow camoufox to open new tabs in running browser

This commit is contained in:
zhom
2026-02-01 22:56:36 +04:00
parent b54a3e7a13
commit 1f2c77c14f
-9
View File
@@ -117,10 +117,6 @@ export function useBrowserState(
return isRunning; return isRunning;
} }
if (profile.browser === "camoufox" && isRunning) {
return false;
}
// For other browsers, any profile can be used // For other browsers, any profile can be used
return true; return true;
}, },
@@ -222,7 +218,6 @@ export function useBrowserState(
if (canUseForLinks) return null; if (canUseForLinks) return null;
const isRunning = runningProfiles.has(profile.id);
const isLaunching = launchingProfiles.has(profile.id); const isLaunching = launchingProfiles.has(profile.id);
const isStopping = stoppingProfiles.has(profile.id); const isStopping = stoppingProfiles.has(profile.id);
const isBrowserUpdating = isUpdating(profile.browser); const isBrowserUpdating = isUpdating(profile.browser);
@@ -252,10 +247,6 @@ export function useBrowserState(
} }
} }
if (profile.browser === "camoufox" && isRunning) {
return "Anti-detect profiles can only open links on first launch";
}
return "This profile cannot be used for opening links right now."; return "This profile cannot be used for opening links right now.";
}, },
[ [