on new window, open file:// protocol links in patchwork's windows

这个提交包含在:
Paul Frazee 2015-08-22 18:25:56 -05:00
父节点 c3bf0f4296
当前提交 0c5c392a70
共有 1 个文件被更改,包括 8 次插入0 次删除

查看文件

@ -58,6 +58,14 @@ module.exports.open = function (url, sbot, blobs, opts, params) {
shell.openItem(filepath) // open in desktop's default program
}
})
} else if (url.indexOf('file://') === 0) {
var mainWindow = open(
url,
sbot,
blobs,
{ width: 1030, height: 720 }
)
require('./menu')(mainWindow)
} else {
// open in the browser
shell.openExternal(url)