diff --git a/README.md b/README.md index 8dd173c65..ee8438613 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 a0ecb51e5..e42114e09 100644 --- a/server/index.html +++ b/server/index.html @@ -12,9 +12,9 @@ - - - + + + @@ -56,7 +56,7 @@

Subscribe via web

- +

@@ -83,7 +83,7 @@

Subscribe via your app, or via the CLI

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 @@

Publishing messages

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.'
})