fix(#175): three-dot Share dialog opens again; viewer explains insecure-context instead of importKey error #188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-share-viewer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two dogfood findings on v0.6.4:
Menu "Share" did nothing (#175·1).
openShareDialogreferenced an undefinedr(r.mode) right beforeshowModal(), so the click threw and the dialog never opened — which is also why only copy-link shares appeared in the Shares view (menu-Share created nothing). Same ReferenceError class as #131. Now reads the selected mode; the dialog opens.Viewer threw
Cannot read properties of undefined (reading 'importKey')on the plain-HTTP dogfood. typage decrypts with Web Crypto (crypto.subtle), which browsers makeundefinedon insecure origins. The viewer now detects that up front and shows a clear "needs an HTTPS link" message instead of the raw exception. Production shares are HTTPS and were never affected — this is graceful failure for plain-HTTP internal instances.Plus the fragment-mode "anyone with the complete link can open it" warning (en/de/fr/it). node --check on all script blocks + go build/test green. CHANGELOG v0.6.5.