From efb34fbec1aad924efad4ff6687a58b21656436b Mon Sep 17 00:00:00 2001 From: chaloemphong Date: Thu, 19 Nov 2026 10:25:42 +0700 Subject: [PATCH] Fall back when crypto.randomUUID / clipboard are unavailable Both APIs only exist in secure contexts, so opening a PDF threw "crypto.randomUUID is not a function" when the app was served over plain HTTP (e.g. the Coolify sslip.io preview domain). Co-Authored-By: Claude Opus 5.5 --- src/components/SidePanel.tsx | 7 ++++++- src/lib/util.ts | 10 +++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/SidePanel.tsx b/src/components/SidePanel.tsx index c2756d1..a606e40 100644 --- a/src/components/SidePanel.tsx +++ b/src/components/SidePanel.tsx @@ -593,7 +593,12 @@ function OcrPanel() { <>

{tr('ข้อความที่อ่านได้', 'Recognised text')}