Browse Source

this helps #993

pull/2/head
gorhill 10 years ago
parent
commit
daede90cc7
  1. 14
      platform/chromium/vapi-common.js

14
platform/chromium/vapi-common.js

@ -61,14 +61,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…
Cancel
Save