1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-07-02 21:10:50 +12:00

Fix download URL for the fallback method

This commit is contained in:
Deathamns 2014-10-21 09:06:40 +02:00 committed by gorhill
parent da0e62dff6
commit 358ec2c644

View file

@ -18,11 +18,11 @@ vAPI.download = function(details) {
a.dispatchEvent(new MouseEvent('click')); a.dispatchEvent(new MouseEvent('click'));
} }
else { else {
var messager = vAPI.messaging.channel('download'); var messager = vAPI.messaging.channel('_download');
messager.send({ messager.send({
what: 'gotoURL', what: 'gotoURL',
details: { details: {
url: a.target.href, url: details.url,
index: -1 index: -1
} }
}); });