Clear stale preview iframe errors (#65)

This commit is contained in:
Will Chen
2025-05-01 22:48:43 -07:00
committed by GitHub
parent 79b7f865fc
commit 1327e64e52
8 changed files with 75 additions and 57 deletions

View File

@@ -99,10 +99,10 @@ export class IpcClient {
"message" in data &&
"appId" in data
) {
const { type, message, appId } = data as AppOutput;
const { type, message, appId } = data as unknown as AppOutput;
const callbacks = this.appStreams.get(appId);
if (callbacks) {
callbacks.onOutput({ type, message, appId });
callbacks.onOutput({ type, message, appId, timestamp: Date.now() });
}
} else {
showError(new Error(`[IPC] Invalid app output data received: ${data}`));