Disable Download Links on Firefox. #932
This commit is contained in:
parent
1ef4e2db9f
commit
5711a85c8c
@ -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', {
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user