vchuserandClaude Opus 5 d20f964399 Fix promise leak when result overlay is displaced by new scan
When a new scan result displaces a previously visible overlay, the promise
of the displaced overlay was never resolved. This caused the caller waiting
on that promise to block indefinitely, freezing the app.

Now the resolve function is stored in the WeakMap alongside the overlay
and timer. When a new overlay displaces the previous one, the displaced
overlay's promise is resolved immediately with resolve(), signifying that
it is no longer visible.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 17:08:25 +02:00

ocr_scanner

Short description of what this project does.

Getting Started

Prerequisites

  • Node.js 20+
  • npm or pnpm

Installation

npm install

Development

npm run dev

Tech Stack

  • ...

Project Structure

src/
  ...

License

...

S
Description
No description provided
Readme
687 KiB
Languages
JavaScript 95.4%
CSS 2.6%
Python 1.8%
HTML 0.2%