From 358ec2c644e7df795c1d2c76721c5573bcd15999 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Tue, 21 Oct 2014 09:06:40 +0200 Subject: [PATCH] Fix download URL for the fallback method --- src/js/vapi-common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/vapi-common.js b/src/js/vapi-common.js index 5cd1449..752cb2b 100644 --- a/src/js/vapi-common.js +++ b/src/js/vapi-common.js @@ -18,11 +18,11 @@ vAPI.download = function(details) { a.dispatchEvent(new MouseEvent('click')); } else { - var messager = vAPI.messaging.channel('download'); + var messager = vAPI.messaging.channel('_download'); messager.send({ what: 'gotoURL', details: { - url: a.target.href, + url: details.url, index: -1 } });