|
@@ -53,7 +53,7 @@ function createCommentSessionState(store: Store<CommentStore>, setStore: SetStor
|
|
|
|
|
|
|
|
const add = (input: Omit<LineComment, "id" | "time">) => {
|
|
const add = (input: Omit<LineComment, "id" | "time">) => {
|
|
|
const next: LineComment = {
|
|
const next: LineComment = {
|
|
|
- id: crypto.randomUUID(),
|
|
|
|
|
|
|
+ id: crypto.randomUUID?.() ?? Math.random().toString(16).slice(2),
|
|
|
time: Date.now(),
|
|
time: Date.now(),
|
|
|
...input,
|
|
...input,
|
|
|
}
|
|
}
|