MCPcopy
hub / github.com/ollm/OpenComic / downloadOrOpen

Function downloadOrOpen

scripts/opds.js:468–482  ·  view source on GitHub ↗
(link)

Source from the content-addressed store, hash-verified

466}
467
468function downloadOrOpen(link)
469{
470 if(link.type === 'text/html')
471 {
472 electron.shell.openExternal(link.url);
473 }
474 else
475 {
476 if(config.downloadOpdsToFolder)
477 download(link);
478 else
479 downloadDialog(link);
480
481 }
482}
483
484function downloadDialog(link, confirm = false)
485{

Callers 1

downloadOrSelectFunction · 0.85

Calls 2

downloadDialogFunction · 0.85
downloadFunction · 0.70

Tested by

no test coverage detected