fix: remove beforeunload receipt popup, upgrade share to Web Share API#22
Merged
Merged
Conversation
- Remove beforeunload handler that tried to show receipt modal on page leave — browsers block custom modals in beforeunload, causing a broken native dialog instead - Update openSharePopup to use navigator.share (native OS share sheet on mobile/modern browsers) with Twitter fallback - Rename receipt "Share Receipt" → "Share" and "Copy Text" → "Copy Receipt" for cleaner UX Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/df71b0f3-a0c9-4299-8b2a-2a6efa44cb60 Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
nitrocode
April 22, 2026 09:19
View session
Contributor
👁️ PR Preview
|
CSS `display: flex` on `.modal-overlay` and `.share-doom-panel` was
overriding the browser's user-agent `[hidden] { display: none }` rule
(author stylesheets have higher priority than UA stylesheets). This
caused the receipt modal to render as a full-screen overlay the moment
the page loaded, blocking all content.
Adding `[hidden] { display: none !important; }` in the CSS reset
section enforces the semantic meaning of the HTML `hidden` attribute
regardless of what display value a class sets.
Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/51461cef-791a-4bae-b565-79a3dd0840d9
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Copilot stopped work on behalf of
nitrocode due to an error
April 22, 2026 09:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
display: flexon.modal-overlayand.share-doom-paneloverrides the HTMLhiddenattribute (author stylesheet beats user-agent stylesheet)[hidden] { display: none !important; }to the CSS reset section to enforce the hidden attribute universally