pg
/
sbot
1
0
Fork 0

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

Dieser Commit ist enthalten in:
Paul Frazee 2015-08-22 18:25:56 -05:00
Ursprung c3bf0f4296
Commit 0c5c392a70
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -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)