Merge branch 'release/v1.2.1'

This commit is contained in:
Yuya Ochiai
2016-06-01 23:04:40 +09:00
8 changed files with 105 additions and 16 deletions

View File

@@ -317,6 +317,7 @@ var MattermostView = React.createClass({
var currentURL = url.parse(webview.getURL());
var destURL = url.parse(e.url);
if (destURL.protocol !== 'http:' && destURL.protocol !== 'https:') {
ipcRenderer.send('confirm-protocol', destURL.protocol, e.url);
return;
}
if (currentURL.host === destURL.host) {