- Probe `crypto.subtle` instead of `crypto` before computing the SHA-1 font digest. `crypto` exists in every browser, but `crypto.subtle` is only exposed in a secure context (https, or http on localhost). - The headless canvas is served over plain http on the compose network, so the old check passed and `crypto.subtle.digest` threw "Cannot read properties of undefined (reading 'digest')", aborting every save_file call and the backend's turn-end export, which left the project's designs/*.fig file stale. - Fall back to the existing empty digest so save and export keep working where Web Crypto is unavailable. |
||
|---|---|---|
| .. | ||
| assets | ||
| src | ||
| package.json | ||
| tsconfig.json | ||
| tsdown.config.ts | ||