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

Safari 11: Save Image #85

Closed
tillkruss opened this issue Oct 1, 2017 · 2 comments
Closed

Safari 11: Save Image #85

tillkruss opened this issue Oct 1, 2017 · 2 comments

Comments

@tillkruss
Copy link

Saving as image doesn't work.

[Error] TypeError: e.replace is not a function. (In 'e.replace(/&/g,"&")', 'e.replace' is undefined)
	t (app.js:21:977311)
	p (app.js:21:982629)
	value (app.js:21:616414)
	value
	value (app.js:21:616248)
	value
	(anonymous function) (app.js:21:1529383)
	bt (app.js:2:23963)
	vt (app.js:2:24238)
	ar (app.js:2:50646)
	pr (app.js:2:53169)
	Za (app.js:2:98526)
	(anonymous function) (app.js:2:147167)
[Error] Unhandled Promise Rejection: [object Event]
	(anonymous function)
	promiseReactionJob
@zcei
Copy link

zcei commented Oct 1, 2017

This is a known limitation in the underlaying library.

Safari is stricter with a specific tag that is used to render the DOM to an image. A potential workaround would be rendering it as an SVG and use a server endpoint to render it to an SVG.

I'm currently building a server endpoint that takes the settings & code and returns a PNG directly - this could eventually be used for Safari users as well, I guess.

Edit: Actually it's a "duplicate" of #28

@mfix22
Copy link
Contributor

mfix22 commented Oct 1, 2017

Thanks @zcei. We will track this issue at #28. Closing.

@mfix22 mfix22 closed this as completed Oct 1, 2017
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

No branches or pull requests

3 participants