Browse Source

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

Paul Frazee 5 years ago
parent
commit
0c5c392a70
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      app/lib/windows.js

+ 8
- 0
app/lib/windows.js View File

@@ -58,6 +58,14 @@ module.exports.open = function (url, sbot, blobs, opts, params) {
58 58
           shell.openItem(filepath) // open in desktop's default program
59 59
         }
60 60
       })
61
+    } else if (url.indexOf('file://') === 0) {
62
+      var mainWindow = open(
63
+        url,
64
+        sbot,
65
+        blobs,
66
+        { width: 1030, height: 720 }
67
+      )
68
+      require('./menu')(mainWindow)
61 69
     } else {
62 70
       // open in the browser
63 71
       shell.openExternal(url)

Loading…
Cancel
Save