Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix save button #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix save button #15

wants to merge 2 commits into from

Conversation

yonatan
Copy link

@yonatan yonatan commented Sep 17, 2019

Patch for #14. Some browsers no longer allow top frame navigation to data URLs (https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/GbVcuwg_QjM%5B1-25%5D).

This patch makes the save button an <a> tag, sets the href to the data URL on click, and adds a download attribute so it gets saved instead of opened.

Works for me on Chromium 76.0.3809.100 and Firefox 69.0.

Really nice app btw!

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.

1 participant