projects
/
pwl6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Proper policy for links is openExternal, not forceDownload.
[pwl6.git]
/
src
/
yuu
/
core.js
diff --git
a/src/yuu/core.js
b/src/yuu/core.js
index
22a1fb4
..
cbeb2a0
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) {
wkdoc.dispatchEvent(ev);
});
win.on('new-win-policy', function (frame, url, policy) {
- if (url.startsWith('chrome'))
+ if (url.startsWith('chrome'))
{
policy.forceNewPopup();
policy.forceNewPopup();
- else
- policy.forceDownload();
+ } else {
+ policy.ignore();
+ gui.Shell.openExternal(url);
+ }
});
}
});
}