From 0c5c392a70e423263cbc29db884a672b012e7b9f Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Sat, 22 Aug 2015 18:25:56 -0500 Subject: [PATCH] on new window, open file:// protocol links in patchwork's windows --- app/lib/windows.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/lib/windows.js b/app/lib/windows.js index 749267d..8e5a143 100644 --- a/app/lib/windows.js +++ b/app/lib/windows.js @@ -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)