Skip to content

Commit

Permalink
Replace openItem by openExternal to try to make it work on osx
Browse files Browse the repository at this point in the history
related to #146
  • Loading branch information
meriadec committed Jun 10, 2017
1 parent 3201c15 commit 816e38f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/actions/queryLastVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function queryLastVersion () {
primary
className='mt-20'
onClick={() => {
shell.openItem(getDownloadURL())
shell.openExternal(getDownloadURL())
}}
>
<IconDownload className='mr-5' />
Expand Down
2 changes: 1 addition & 1 deletion app/components/ErrorModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ErrorModal extends Component {
<pre>{stack}</pre>
</div>
<div className='d-f ai-c jc-c'>
<Button primary onClick={() => shell.openItem('https://github.com/mjmlio/mjml-app/issues')}>
<Button primary onClick={() => shell.openExternal('https://github.com/mjmlio/mjml-app/issues')}>
<IconOpen className='mr-5' />
{'Open the issues page'}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion app/components/Iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Iframe extends Component {
e.preventDefault()
const href = link.getAttribute('href')
if (href) {
shell.openItem(href)
shell.openExternal(href)
}
})
})
Expand Down
4 changes: 2 additions & 2 deletions app/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export default function buildMenu (mainWindow) {
}, {
label: 'Documentation',
click () {
shell.openItem('https://mjml.io/documentation/')
shell.openExternal('https://mjml.io/documentation/')
},
}, {
label: 'Browser Editor',
click () {
shell.openItem('https://mjml.io/try-it-live')
shell.openExternal('https://mjml.io/try-it-live')
},
}, {
type: 'separator',
Expand Down

0 comments on commit 816e38f

Please sign in to comment.