sindresorhus/electron-dl

Enable an app to display a custom "interrupted" dialog

Open

#105 创建于 2020年2月13日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (136 fork)user submission
enhancementhelp wanted

仓库指标

Star
 (1,206 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Rather than just allowing the 'The download of {filename} was interrupted' system message box text to be customized, enable the app to provide a dialog box styled per the app.

Could perhaps be achieved by one of: (a) Add an 'onError' optional callback. (No "interrupted" dialog is displayed is this callback is specified.) (b) Allow a blank string to be specified as the value of 'errorMessage'. (No "interrupted" dialog is displayed if the string is ""; the "interrupted" result can be found by testing the 'state' returned by the 'done' event).

贡献者指南