Whitelabel: Downloads link opens in Mattermost branded window.
This commit is contained in:
@@ -104,7 +104,7 @@ const MattermostView = createReactClass({
|
|||||||
ipcRenderer.send('download-url', e.url);
|
ipcRenderer.send('download-url', e.url);
|
||||||
} else {
|
} else {
|
||||||
// New window should disable nodeIntergration.
|
// New window should disable nodeIntergration.
|
||||||
window.open(e.url, 'Mattermost', 'nodeIntegration=no, show=yes');
|
window.open(e.url, remote.app.getName(), 'nodeIntegration=no, show=yes');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// if the link is external, use default browser.
|
// if the link is external, use default browser.
|
||||||
|
Reference in New Issue
Block a user