Skip to content

Commit 4200874

Browse files
committed
📝 Update README
1 parent b79191d commit 4200874

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ javascript snippet to your `forest.xsl` template:
4141
<script>
4242
const evtSource = new EventSource("reload");
4343
evtSource.onmessage = (event) => {
44-
location.reload();
44+
if (event.data == "reload") {
45+
location.reload();
46+
} else {
47+
console.log(event.data);
48+
}
4549
};
4650
</script>
4751
```
@@ -54,6 +58,10 @@ It is now possible to specify a tree directory using the `--dir` flag, but
5458
the application still runs `forester` in the directory that `forest-server` is called in, so
5559
it panics when there is no `theme` directory present.
5660

61+
### TODO
62+
63+
- Add a nice overlay to the UI like in vite.
64+
5765
## Configuration:
5866

5967
Configuration options will be available through command-line flags. Detailed configuration information will be added soon.

0 commit comments

Comments
 (0)