Disable Download Links on Firefox. #932

This commit is contained in:
Nicolas Stepien 2013-02-26 04:25:49 +01:00
parent 1ef4e2db9f
commit 5711a85c8c
2 changed files with 3 additions and 2 deletions

View File

@ -2554,7 +2554,7 @@
if (g.VIEW === 'catalog' || !Conf['Menu'] || !Conf['Download Link']) {
return;
}
if ($.el('a').download === void 0) {
if ($.engine === 'gecko' || $.el('a').download === void 0) {
return;
}
a = $.el('a', {

View File

@ -1363,8 +1363,9 @@ DownloadLink =
init: ->
return if g.VIEW is 'catalog' or !Conf['Menu'] or !Conf['Download Link']
# Firefox won't let us download cross-domain content.
# Test for download feature support.
return if $.el('a').download is undefined
return if $.engine is 'gecko' or $.el('a').download is undefined
a = $.el 'a',
className: 'download-link'
textContent: 'Download file'