Git Product home page Git Product logo

Comments (7)

sindresorhus avatar sindresorhus commented on July 21, 2024 1

@Matt-Gleich I have implemented this now. Would you be able to test it out?

Plash-local.zip

from plash.

gleich avatar gleich commented on July 21, 2024

Works on mine! Could there be a way to just choose an HTML file instead of it having to be index.html?

from plash.

sindresorhus avatar sindresorhus commented on July 21, 2024

Why? There's a reason I did it like this. Because of sandboxing, Plash only gets access to what you pick in the open panel. It needs access to the related files too, so it wouldn't be enough to just pick a HTML file. It needs to pick the directory. So to support picking a custom HTML file, Plash would have to prompt the user twice. First, for the HTML file and then for its directory. Didn't seem worth the complication nor worse UX for the user.

from plash.

gleich avatar gleich commented on July 21, 2024

I just thought it would've been nice to have. Can you not just get the directory from the loaded in file? If not thats fine I was just wondering.

from plash.

sindresorhus avatar sindresorhus commented on July 21, 2024

I can get the path to the directory. That's just removing the last path component. I just cannot get read access to it. Permissions in sandboxed apps are very strict, unfortunately.

from plash.

gleich avatar gleich commented on July 21, 2024

Ok, it's not like its that big of a deal.

from plash.

sindresorhus avatar sindresorhus commented on July 21, 2024

There's an update in the App Store now with this.

from plash.

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.