Browse Source

changes re #993 for firefox platform

pull/2/head
gorhill 10 years ago
parent
commit
3e43478e13
  1. 14
      platform/firefox/vapi-common.js

14
platform/firefox/vapi-common.js

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

Loading…
Cancel
Save