You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now there is no way to actually download the generated html into the canvas. We should add a download button in BrowserShape.tsx in the address bar.
The text was updated successfully, but these errors were encountered:
Related to #3
Adds a download button to the `BrowserShape.tsx` component, enabling users to download the generated HTML content of the iframe directly to their device.
- Implements a `handleDownload` function that creates a Blob from the iframe's HTML content, generates a URL for it, and triggers a download operation using a temporary anchor element.
- Adds a new download button to the address bar section, utilizing the `Download` icon from `lucide-react`, and binds the `handleDownload` function to its `onClick` event.
- Ensures the download functionality is only available when there is HTML content to download by checking the presence of `shape.props.html` before proceeding with the download operation.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/SawyerHood/tlbrowse/issues/3?shareId=a8cc8a94-7a7f-46ab-8c0a-406833e1ffab).
Right now there is no way to actually download the generated html into the canvas. We should add a download button in
BrowserShape.tsx
in the address bar.The text was updated successfully, but these errors were encountered: