Git Product home page Git Product logo

Comments (1)

1j01 avatar 1j01 commented on May 17, 2024

It's currently set up to load files from absolute paths (URLs), assuming that it's at the root of a domain (or subdomain), so it's making requests for files at e.g.
http://www.cristianleandri.com/desktop/CREDITS.txt
instead of
http://www.cristianleandri.com/98-master/desktop/CREDITS.txt
(found out this was the problem by looking at the Network tab in chrome devtools (knowing that it fetches files over HTTP - which isn't clear from the error message because it's going thru a filesystem abstraction library BrowserFS))

I made this decision to simply handling applications that aren't at the root (e.g. https://98.js.org/programs/sound-recorder/ which can be used standalone), which would have to load from different relative paths, but the same absolute paths (as long as the absolute paths work...)

I may be able to fix this fairly easily, but it's not necessarily a goal of the project to work with arbitrary hosting setups; it might need a custom server at some point in the future. For instance, it has a filesystem-index.json file that has to be regenerated, and it would be nice if that was generated dynamically by the server.

All that said, by the way, I do want to make it so you can definitely see the credits - since this is largely a showcase project, and you can still appreciate the projects themselves without the filesystem support. So I might want to make the credits work differently (it would be good to be able to click the links anyways),

from 98.

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.