From: Joe Wreschnig Date: Wed, 10 Sep 2014 15:47:08 +0000 (+0200) Subject: Proper policy for links is openExternal, not forceDownload. X-Git-Tag: v1.2~2 X-Git-Url: https://git.yukkurigames.com/?p=pwl6.git;a=commitdiff_plain;h=669ef158d517ad930b20b88e4a414c018fa38021 Proper policy for links is openExternal, not forceDownload. --- 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); + } }); }