Skip to content

Add share button to converted files#13

Open
strawberry-raccoon wants to merge 3 commits intoswe-productivity:mainfrom
strawberry-raccoon:share-button
Open

Add share button to converted files#13
strawberry-raccoon wants to merge 3 commits intoswe-productivity:mainfrom
strawberry-raccoon:share-button

Conversation

@strawberry-raccoon
Copy link

@strawberry-raccoon strawberry-raccoon commented Feb 12, 2026

Closes #5

@strawberry-raccoon strawberry-raccoon force-pushed the share-button branch 2 times, most recently from 6e4119a to ef8f822 Compare February 12, 2026 19:08
@C4illin C4illin self-assigned this Mar 5, 2026
.then((res) => res.text())
.then((html) => {
main.innerHTML = html;
setupShareButtons();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also call this when refreshData isn't running like if you go to history to share an old file

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 38bb0f6.

Copy link
Collaborator

@C4illin C4illin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Do you have any tips for testing this? Couldn't get the share api to work on any browser, does it need a phone browser?

But the code looks correct, just added two very minor comments

@strawberry-raccoon
Copy link
Author

Couldn't get the share api to work on any browser, does it need a phone browser?

It has somewhat limited support outside of mobile browsers. For desktop, Chromium supports it as long as your OS has a native share feature (I believe Windows, macOS and ChromeOS). I'd say testing it on mobile is a more realistic experience since those have the most complete share experiences and it's where most people are likely to use this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Web Share of converted file

2 participants