let downloadId = 2;
function onResumed() {
console.log(`Resumed download`);
}
function onError(error) {
console.log(`Error: ${error}`);
}
let resuming = browser.downloads.resume(downloadId);
resuming.then(onResumed, onError);downloads.resume() / notebook
downloads.resume()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.