From 669ef158d517ad930b20b88e4a414c018fa38021 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Wed, 10 Sep 2014 17:47:08 +0200 Subject: [PATCH] Proper policy for links is openExternal, not forceDownload. --- src/yuu/core.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/yuu/core.js b/src/yuu/core.js index 22a1fb4..cbeb2a0 100644 --- a/src/yuu/core.js +++ b/src/yuu/core.js @@ -93,10 +93,12 @@ wkdoc.dispatchEvent(ev); }); win.on('new-win-policy', function (frame, url, policy) { - if (url.startsWith('chrome')) + if (url.startsWith('chrome')) { policy.forceNewPopup(); - else - policy.forceDownload(); + } else { + policy.ignore(); + gui.Shell.openExternal(url); + } }); } -- 2.30.2