Skip to content

Instantly share code, notes, and snippets.

@s-mage
Created May 3, 2020 07:24
Show Gist options
  • Save s-mage/18772a664cd3a06868e7c253aa9c8918 to your computer and use it in GitHub Desktop.
Save s-mage/18772a664cd3a06868e7c253aa9c8918 to your computer and use it in GitHub Desktop.
FF = "Firefox"
CHROME = "Google Chrome"
SLACK = "com.tinyspeck.slackmacgap"
GLEAM_GH = /github.com\/Crowd9/
module.exports = {
defaultBrowser: FF,
handlers: [
{
// Open any link clicked in Slack in chrome
match: ({ sourceBundleIdentifier }) => sourceBundleIdentifier === SLACK,
browser: CHROME
},
{
// Open gleam urls in chrome
match: GLEAM_GH,
browser: CHROME
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment