Skip to content

open: StartWith() and RunWith() revert to default if appName is empty#27

Open
technoweenie wants to merge 1 commit intoskratchdot:masterfrom
technoweenie:allow-empty-appname
Open

open: StartWith() and RunWith() revert to default if appName is empty#27
technoweenie wants to merge 1 commit intoskratchdot:masterfrom
technoweenie:allow-empty-appname

Conversation

@technoweenie
Copy link

This package is used in an app where we are considering allowing the user to override the default browser. Basically, I'm a Firefox user, but for Reasons ™️, only Chrome works with the app.

This change treats RunWith(url, "") as Run(url), or StartWith(url, "") as Start(url). This way, the app will use the default browser by default unless the user overrides the setting. It also saves us from wrapping or implementing this open package ourselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants