Merge pull request #453 from yuya-oc/fix-window-open
Fix window.open() looks not working
This commit is contained in:
@@ -72,7 +72,7 @@ const MattermostView = React.createClass({
|
|||||||
}
|
}
|
||||||
if (currentURL.host === destURL.host) {
|
if (currentURL.host === destURL.host) {
|
||||||
// New window should disable nodeIntergration.
|
// New window should disable nodeIntergration.
|
||||||
window.open(e.url, 'Mattermost', 'nodeIntegration=no');
|
window.open(e.url, 'Mattermost', 'nodeIntegration=no, show=yes');
|
||||||
} else {
|
} else {
|
||||||
// if the link is external, use default browser.
|
// if the link is external, use default browser.
|
||||||
shell.openExternal(e.url);
|
shell.openExternal(e.url);
|
||||||
|
Reference in New Issue
Block a user