sindresorhus/open

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

Opened this issue · 2 comments

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

A possible fix is inserting the line

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

right after line 9 in windows.js

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