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