mirror of
https://github.com/seigler/janus
synced 2025-07-27 01:36:11 +00:00
feat: add directions for serving the file locally
This commit is contained in:
parent
a11212278d
commit
80be6f001a
5 changed files with 62 additions and 3 deletions
10
README.md
10
README.md
|
@ -6,3 +6,13 @@ This is a browser-based presentation framework with two connected views: one for
|
|||
|
||||
* Presenter view and presentation view, connected through Localstorage
|
||||
* Specializes in live-coding demos
|
||||
|
||||
## How to Use:
|
||||
|
||||
Use `npm run start` to serve the project folder on `localhost` and launch it in your default browser.
|
||||
|
||||
After you have edited index.html to your liking, you can run `npm run build` to compile the whole presentation into a single portable file for use elsewhere.
|
||||
|
||||
## Gotchas:
|
||||
|
||||
Firefox and Chrome handle `file:///` urls differently. In Firefox, local files are allowed to interact with LocalStorage, but on Chrome they are not. To circumvent this issue, you have to serve the file on `localhost` with `npm run start` or some other local server.
|
Loading…
Add table
Add a link
Reference in a new issue