mirror of
https://github.com/block/buzz.git
synced 2026-11-12 12:22:06 +00:00
Polish agent and team sharing and snapshots (#1852)
This commit is contained in:
@@ -9426,6 +9426,9 @@ export function maybeInstallE2eTauriMocks() {
|
||||
return true;
|
||||
case "copy_image_to_clipboard":
|
||||
return;
|
||||
case "copy_text_to_clipboard":
|
||||
await navigator.clipboard.writeText((payload as { text: string }).text);
|
||||
return;
|
||||
case "get_event":
|
||||
return handleGetEvent(
|
||||
payload as Parameters<typeof handleGetEvent>[0],
|
||||
@@ -9585,7 +9588,10 @@ export function maybeInstallE2eTauriMocks() {
|
||||
case "get_relay_self":
|
||||
if ((activeConfig?.mock?.relaySelfDelayMs ?? 0) > 0) {
|
||||
await new Promise((resolve) =>
|
||||
window.setTimeout(resolve, activeConfig?.mock?.relaySelfDelayMs),
|
||||
window.setTimeout(
|
||||
resolve,
|
||||
activeConfig?.mock?.relaySelfDelayMs ?? 0,
|
||||
),
|
||||
);
|
||||
}
|
||||
return activeConfig?.mock?.relaySelf ?? null;
|
||||
|
||||
Reference in New Issue
Block a user