on new window, open file:// protocol links in patchwork's windows
This commit is contained in:
parent
c3bf0f4296
commit
0c5c392a70
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user