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:
parent
ea99f5fd07
commit
1b1e982835
@ -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'));
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user