You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
277 B
13 lines
277 B
7 years ago
|
// @flow
|
||
|
import { shell } from 'electron'
|
||
|
import { track } from 'analytics/segment'
|
||
|
|
||
|
export const openURL = (
|
||
|
url: string,
|
||
|
customEventName: string = 'OpenURL',
|
||
|
extraParams: Object = {},
|
||
|
) => {
|
||
|
track(customEventName, { ...extraParams, url })
|
||
|
shell.openExternal(url)
|
||
|
}
|