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