|
1 | 1 | <script lang="ts"> |
2 | | - import { runtimeListen, portPost, EMsg } from '../api/communication.ts'; |
| 2 | + import { EMsg, portPost, runtimeListen } from '../api/communication.ts'; |
3 | 3 | import { IS_DEV } from '../api/env.ts'; |
4 | 4 | import { getSettings, setSettings } from '../api/settings.ts'; |
5 | 5 | import diff from '../api/diff.ts'; |
|
11 | 11 | import TogglePanels from './components/TogglePanels.svelte'; |
12 | 12 | import InfoBar from './components/InfoBar.svelte'; |
13 | 13 | import TickSpinner from './components/TickSpinner.svelte'; |
14 | | - import Alert from './components/Alert.svelte'; |
15 | 14 | import OnlineTimers from './components/OnlineTimers.svelte'; |
16 | 15 | import IdleCallbackRequestHistory from './components/IdleCallbackRequestHistory.svelte'; |
17 | 16 | import IdleCallbackCancelHistory from './components/IdleCallbackCancelHistory.svelte'; |
18 | 17 | import AnimationRequestHistory from './components/AnimationRequestHistory.svelte'; |
19 | 18 | import AnimationCancelHistory from './components/AnimationCancelHistory.svelte'; |
20 | 19 | import TimersSetHistory from './components/TimersSetHistory.svelte'; |
21 | 20 | import TimersClearHistory from './components/TimersClearHistory.svelte'; |
22 | | - import { shouldAutopause } from 'src/api/time.ts'; |
23 | 21 |
|
24 | 22 | let spinnerEl: TickSpinner | null = $state.raw(null); |
25 | | - let autopauseAlertEl: Alert | null = $state.raw(null); |
26 | 23 | let paused = $state.raw(false); |
27 | 24 | let telemetry: TTelemetry | null = $state.raw(null); |
28 | 25 | let telemetryProgressive: TTelemetry | null = null; |
|
43 | 40 | telemetry = structuredClone(telemetryProgressive); |
44 | 41 | } |
45 | 42 |
|
46 | | - if (shouldAutopause(o.timeOfCollection)) { |
47 | | - if (!paused) { |
48 | | - onTogglePause(); |
49 | | - autopauseAlertEl?.show(); |
50 | | - } |
51 | | - } else { |
52 | | - portPost({ |
53 | | - msg: EMsg.TELEMETRY_ACKNOWLEDGED, |
54 | | - timeOfCollection: o.timeOfCollection, |
55 | | - }); |
56 | | - } |
| 43 | + portPost({ |
| 44 | + msg: EMsg.TELEMETRY_ACKNOWLEDGED, |
| 45 | + timeOfCollection: o.timeOfCollection, |
| 46 | + }); |
57 | 47 |
|
58 | 48 | spinnerEl?.tick(); |
59 | 49 | } |
|
92 | 82 | </script> |
93 | 83 |
|
94 | 84 | <section class="root"> |
95 | | - <Alert bind:this={autopauseAlertEl} dismissable={true} title="Autopaused" |
96 | | - >Communication with the inspected window experienced a long delay and was |
97 | | - autopaused.<br />Try hiding panels you don't need at the moment to minimise |
98 | | - quantity of monitored data.</Alert |
99 | | - > |
100 | | - |
101 | 85 | <header> |
102 | 86 | {#if IS_DEV} |
103 | 87 | <button onclick={onDevReload} title="Reload" aria-label="Reload"> |
|
0 commit comments