(step, status)
| 3535 | // ============================================================ |
| 3536 | |
| 3537 | async function setStepStatus(step, status) { |
| 3538 | if (typeof loggingStatus !== 'undefined' && loggingStatus?.setStepStatus) { |
| 3539 | return loggingStatus.setStepStatus(step, status); |
| 3540 | } |
| 3541 | const state = await getState(); |
| 3542 | const statuses = { ...state.stepStatuses }; |
| 3543 | statuses[step] = status; |
| 3544 | await setState({ stepStatuses: statuses, currentStep: step }); |
| 3545 | chrome.runtime.sendMessage({ |
| 3546 | type: 'STEP_STATUS_CHANGED', |
| 3547 | payload: { step, status }, |
| 3548 | }).catch(() => { }); |
| 3549 | } |
| 3550 | |
| 3551 | function isStopError(error) { |
| 3552 | const message = typeof error === 'string' ? error : error?.message; |
no test coverage detected