fix build
This commit is contained in:
@@ -11,8 +11,7 @@ import type { TripEvent, TripRecord, PlaceResult } from "@/lib/types";
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function uid(): string {
|
||||
if (typeof crypto !== "undefined" && crypto.randomUUID) return uid();
|
||||
return Math.random().toString(36).slice(2) + Date.now().toString(36);
|
||||
try { return crypto.randomUUID(); } catch { return Math.random().toString(36).slice(2) + Date.now().toString(36); }
|
||||
}
|
||||
|
||||
function toMin(t: string): number {
|
||||
|
||||
Reference in New Issue
Block a user