Skip to content

Commit 7e79f03

Browse files
committed
drop auto-pause alert
1 parent 547d198 commit 7e79f03

File tree

2 files changed

+5
-26
lines changed

2 files changed

+5
-26
lines changed

src/api/time.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,3 @@ export function adjustTelemetryDelay(timeOfCollection: number) {
236236

237237
return Math.max(TELEMETRY_FREQUENCY_30PS, newDelay);
238238
}
239-
240-
const MAX_SENDING_TIME_LAG = 2e3; // ms
241-
export function shouldAutopause(timeOfCollection: number) {
242-
return Date.now() - timeOfCollection > MAX_SENDING_TIME_LAG;
243-
}

src/view/App.svelte

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { runtimeListen, portPost, EMsg } from '../api/communication.ts';
2+
import { EMsg, portPost, runtimeListen } from '../api/communication.ts';
33
import { IS_DEV } from '../api/env.ts';
44
import { getSettings, setSettings } from '../api/settings.ts';
55
import diff from '../api/diff.ts';
@@ -11,18 +11,15 @@
1111
import TogglePanels from './components/TogglePanels.svelte';
1212
import InfoBar from './components/InfoBar.svelte';
1313
import TickSpinner from './components/TickSpinner.svelte';
14-
import Alert from './components/Alert.svelte';
1514
import OnlineTimers from './components/OnlineTimers.svelte';
1615
import IdleCallbackRequestHistory from './components/IdleCallbackRequestHistory.svelte';
1716
import IdleCallbackCancelHistory from './components/IdleCallbackCancelHistory.svelte';
1817
import AnimationRequestHistory from './components/AnimationRequestHistory.svelte';
1918
import AnimationCancelHistory from './components/AnimationCancelHistory.svelte';
2019
import TimersSetHistory from './components/TimersSetHistory.svelte';
2120
import TimersClearHistory from './components/TimersClearHistory.svelte';
22-
import { shouldAutopause } from 'src/api/time.ts';
2321
2422
let spinnerEl: TickSpinner | null = $state.raw(null);
25-
let autopauseAlertEl: Alert | null = $state.raw(null);
2623
let paused = $state.raw(false);
2724
let telemetry: TTelemetry | null = $state.raw(null);
2825
let telemetryProgressive: TTelemetry | null = null;
@@ -43,17 +40,10 @@
4340
telemetry = structuredClone(telemetryProgressive);
4441
}
4542
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+
});
5747
5848
spinnerEl?.tick();
5949
}
@@ -92,12 +82,6 @@
9282
</script>
9383

9484
<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-
10185
<header>
10286
{#if IS_DEV}
10387
<button onclick={onDevReload} title="Reload" aria-label="Reload">

0 commit comments

Comments
 (0)