1 parent 3b21d83 commit 9b03e37Copy full SHA for 9b03e37
2 files changed
client/src/components/ChatPane.tsx
@@ -184,6 +184,10 @@ export default function ChatPane() {
184
};
185
186
useEffect(() => {
187
+ if (window.yozakura) {
188
+ return undefined;
189
+ }
190
+
191
const handleBeforeUnload = (event: BeforeUnloadEvent) => {
192
if (transcript?.countAllMessages() === 0) {
193
return undefined;
client/src/util/id.ts
@@ -1,5 +1,7 @@
1
+import { uid } from 'uid';
2
3
export function newId() {
- return crypto.randomUUID().replaceAll('-', '');
4
+ return uid(18);
5
}
6
7
export function addOrReplaceVersionQueryParam(path: string) {
0 commit comments