Files
deer-flow/web/src/core/replay/get-replay-id.ts

14 lines
350 B
TypeScript
Raw Normal View History

2025-04-24 21:51:08 +08:00
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
// SPDX-License-Identifier: MIT
export function extractReplayIdFromURL() {
if (typeof window === "undefined") {
return null;
}
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.has("replay")) {
return urlParams.get("replay");
}
return null;
}