Gaëtan Renaudeau
7 years ago
committed by
GitHub
34 changed files with 170 additions and 78 deletions
@ -0,0 +1,12 @@ |
|||
// @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) |
|||
} |
Loading…
Reference in new issue