1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 16:47:15 +02:00

minor code review

This commit is contained in:
gorhill 2017-03-25 09:19:57 -04:00
parent ea99f5fd07
commit 1b1e982835
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -56,6 +56,7 @@ vAPI.download = function(details) {
var a = document.createElement('a'); var a = document.createElement('a');
a.href = details.url; a.href = details.url;
a.setAttribute('download', details.filename || ''); a.setAttribute('download', details.filename || '');
a.setAttribute('type', 'text/plain');
a.dispatchEvent(new MouseEvent('click')); a.dispatchEvent(new MouseEvent('click'));
}; };