projects
/
pwl6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b63b6c
)
Proper policy for links is openExternal, not forceDownload.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Wed, 10 Sep 2014 15:47:08 +0000
(17:47 +0200)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Wed, 10 Sep 2014 15:47:08 +0000
(17:47 +0200)
src/yuu/core.js
patch
|
blob
|
history
diff --git
a/src/yuu/core.js
b/src/yuu/core.js
index 22a1fb436fad8caf320aadd651038ef44a6d394e..cbeb2a0acb236a9aa52ca3002d3f11d8782264b3 100644
(file)
--- 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);
+ }
});
}