1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 00:05:08 +12:00

changes re #993 for firefox platform

This commit is contained in:
gorhill 2015-03-11 19:55:27 -04:00
parent 829f80e1da
commit 3e43478e13

View file

@ -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();
};