mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
minor code review
This commit is contained in:
parent
ea99f5fd07
commit
1b1e982835
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue