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