sindresorhus / open

Open stuff like URLs, files, executables. Cross-platform.
MIT License
3.18k stars 219 forks source link

Unable to open url in incognito when MSEdge is the default browser #326

Open IkeVoodoo opened 10 months ago

IkeVoodoo commented 10 months ago
import open, {apps} from 'open'

open("https://google.com", { app: { name: apps.browserPrivate });

Minimal code

Error:

file:///C:/Tests/opentest/node_modules/default-browser/windows.js:33
                throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
                      ^

UnknownBrowserError: Unknown browser ID: MSEdgeBHTML
IkeVoodoo commented 10 months ago

A possible fix is inserting the line

MSEdgeBHTML: {name: 'Edge', id: 'com.microsoft.edge'}

right after line 9 in windows.js

ghost commented 9 months ago

I'm having trouble with my social media and financial issues most especially my bitcoin wallet address so many times I notice when I'm about receiving money the commission is too high and when I'm sending it out the same thing