(node)
| 3201 | const title = report.title || ui().reports.defaultTitle; |
| 3202 | const confirmText = responseLanguage() === "en" |
| 3203 | ? `Delete this local reading report?\n\n${title}` |
| 3204 | : `删除这个本地精读报告?\n\n${title}`; |
| 3205 | if (!window.confirm(confirmText)) return; |
| 3206 | await api("/api/reports/delete", { |
| 3207 | method: "POST", |
| 3208 | body: JSON.stringify({ report_id: reportId }) |
| 3209 | }); |
| 3210 | state.highlightedReports.delete(reportId); |
| 3211 | saveReportCardHighlights(); |
| 3212 | try { |
| 3213 | window.localStorage.removeItem(reportAnnotationKey(reportId)); |
| 3214 | } catch (error) { |
no outgoing calls
no test coverage detected