extension/src/background.js
// Delete a download that has already finished
Delete a download that has already finished
Delete a download that has already finished
function deleteSuccessfulDownload(downloadItem){
  chrome.downloads.removeFile(downloadItem.id, function(){
    if(chrome.runtime.lastError){
      console.log(chrome.runtime.lastError.message);
    }
    chrome.downloads.erase({"id" : downloadItem.id}, function(){});
  });
}
function deleteSuccessfulDownload ( downloadItem ) { chrome . downloads . removeFile ( downloadItem . id , function ( ) { if ( chrome . runtime . lastError ) { console . log ( chrome . runtime . lastError . message ) ; } chrome . downloads . erase ( { "id" : downloadItem . id } , function ( ) { } ) ; } ) ; }
Delete a download that has already finished
Delete a download that has already finished