(title, content, onConfirm)
| 13617 | if (!result.installing) { |
| 13618 | schedulePwnLogStop(); |
| 13619 | } |
| 13620 | |
| 13621 | } catch (error) { |
| 13622 | console.error('Error fetching Pwnagotchi logs:', error); |
| 13623 | if (!options.silent) { |
| 13624 | setPwnLogEmptyMessage(`Failed to load installer log (${error.message})`); |
| 13625 | } |
| 13626 | } finally { |
| 13627 | pwnLogFetchInFlight = false; |
| 13628 | } |
| 13629 | } |
| 13630 | |
| 13631 | function ensurePwnLogStreamingForStatus(status) { |
| 13632 | if (!status) { |
| 13633 | return; |
| 13634 | } |
| 13635 | |
| 13636 | if (status.log_file && status.log_file !== pwnLogActiveFile) { |
| 13637 | pwnLogActiveFile = status.log_file; |
| 13638 | updatePwnLogPath(status.log_file); |
| 13639 | } |
| 13640 | |
| 13641 | if (status.installing) { |
| 13642 | setPwnStatusPollInterval(PWN_STATUS_FAST_INTERVAL); |
no test coverage detected