diff --git a/README.md b/README.md index 8dd173c6..ee843861 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,8 @@ To build releases, I use [GoReleaser](https://goreleaser.com/). If you have that ## TODO - add HTTPS +- make limits configurable +- limit max number of subscriptions ## Contributing I welcome any and all contributions. Just create a PR or an issue. diff --git a/server/index.html b/server/index.html index a0ecb51e..e42114e0 100644 --- a/server/index.html +++ b/server/index.html @@ -12,9 +12,9 @@ - - - + + + @@ -56,7 +56,7 @@

- +

@@ -83,7 +83,7 @@ notifications like this (see full example):

- const eventSource = new EventSource(`https://ntfy.sh/mytopic/sse`);
+ const eventSource = new EventSource('https://ntfy.sh/mytopic/sse');
eventSource.onmessage = (e) => {
  // Do something with e.data
}; @@ -100,9 +100,9 @@ Here's an example in JS with fetch() (see full example):

- fetch(`https://ntfy.sh/mytopic`, {
+ fetch('https://ntfy.sh/mytopic', {
  method: 'POST', // PUT works too
-   body: `Hello from the other side.`
+   body: 'Hello from the other side.'
})