Fix window.open() looks not working
Intorduced by f8fadcb844
because {show:false} option was inherited from the main window.
https://github.com/electron/electron/blob/v1.4.13/docs/api/window-open.md
Close #450
This commit is contained in:
parent
e2b194ffea
commit
1ff8ec5120
|
@ -72,7 +72,7 @@ const MattermostView = React.createClass({
|
|||
}
|
||||
if (currentURL.host === destURL.host) {
|
||||
// New window should disable nodeIntergration.
|
||||
window.open(e.url, 'Mattermost', 'nodeIntegration=no');
|
||||
window.open(e.url, 'Mattermost', 'nodeIntegration=no,show=yes');
|
||||
} else {
|
||||
// if the link is external, use default browser.
|
||||
shell.openExternal(e.url);
|
||||
|
|
Loading…
Reference in a new issue