Giter VIP home page Giter VIP logo

Comments (7)

exupero avatar exupero commented on July 19, 2024

Thanks for logging this. Is it possible that a.download on line 159 doesn't work in Safari?

from savesvgaspng.

sheriferson avatar sheriferson commented on July 19, 2024

Thanks for the response. You might be right. I tried loading the webpage in Chrome and calling the function does download a .png file with the provided filename. Safari does not log any errors though. I guess it just doesn't work and fails silently.

Running in Chrome required running a server locally because I was loading a data file from somewhere else on disk, whereas Safari never complained about that, which was a reason for making this application run in Safari in the first place.

Do you foresee a workaround to make that work in Safari too?

from savesvgaspng.

exupero avatar exupero commented on July 19, 2024

I don't know of any way to download files differently. I'm open to suggestions.

from savesvgaspng.

ohenrik avatar ohenrik commented on July 19, 2024

The same seems to happen on windows 10 in chrome.

from savesvgaspng.

ctants avatar ctants commented on July 19, 2024

Is it possible to open the png at least in an new tab?
I've added
a.target = "_blank";
to line 259 but it has no effect.

from savesvgaspng.

exupero avatar exupero commented on July 19, 2024

I don't know any way other than that.

from savesvgaspng.

guilhermesimoes avatar guilhermesimoes commented on July 19, 2024

@ctants you can open the png in a new tab using window.open. I'll submit a pull request.

from savesvgaspng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.