1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-24 03:12:46 +01: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');
a.href = details.url;
a.setAttribute('download', details.filename || '');
a.setAttribute('type', 'text/plain');
a.dispatchEvent(new MouseEvent('click'));
};