mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
changes re #993 for firefox platform
This commit is contained in:
parent
60e36c0ffe
commit
e3959c3610
1 changed files with 11 additions and 3 deletions
|
|
@ -57,14 +57,22 @@ vAPI.download = function(details) {
|
|||
a.dispatchEvent(new MouseEvent('click'));
|
||||
return;
|
||||
}
|
||||
var messager = vAPI.messaging.channel('_download');
|
||||
messager.send({
|
||||
|
||||
var request = {
|
||||
what: 'gotoURL',
|
||||
details: {
|
||||
url: details.url,
|
||||
index: -1
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
if ( vAPI.isMainProcess ) {
|
||||
vAPI.tabs.open(request);
|
||||
return;
|
||||
}
|
||||
|
||||
var messager = vAPI.messaging.channel('_download');
|
||||
messager.send(request);
|
||||
messager.close();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue