mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-09-30 13:09:34 +02:00
feat: allow camoufox to open new tabs in running browser
This commit is contained in:
1 parent
b54a3e7a13
commit
1f2c77c14f
1 file changed
-9
@@ -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