Merge pull request #722 from uber-uchat/clean_mattermost_branded_window

Whitelabel: Downloads link opens in Mattermost branded window.
This commit is contained in:
Yuya Ochiai
2018-03-13 01:02:15 +09:00
committed by GitHub

View File

@@ -104,7 +104,7 @@ const MattermostView = createReactClass({
ipcRenderer.send('download-url', e.url);
} else {
// 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 {
// if the link is external, use default browser.