mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-09-28 12:12:14 +02:00
feat: allow camoufox to open new tabs in running browser
This commit is contained in:
@@ -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.";
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user