Skip to content

Commit 955a65a

Browse files
committed
Minor - Renamed 'content' to 'message' for simple notification
1 parent c6b539d commit 955a65a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ A simple example of using [Node.js](https://nodejs.org/) to send Growl-style mes
2626
- [ ] Add example with custom template and image
2727
- [ ] Input validation
2828
- [ ] Exception handling
29+
- [ ] WordPress plugin
2930

3031
## Installation
3132

@@ -78,7 +79,7 @@ Once the server is running:
7879
curl -X POST 'http://localhost:3000/send/my-socket-name?api_key=YOUR_API_KEY' \
7980
-H 'Content-Type: application/json' \
8081
-d '{
81-
"content": "Hello world!",
82+
"message": "Hello world!",
8283
"color": "info"
8384
}'
8485
```

public/assets/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const socket = io.connect( url, { reconnection: true } ); // Set reconnection to
3333
console.log( `Recevied [${socket_name}]`, response );
3434

3535
// Display notification
36-
notify.message( response.content, response.color );
36+
notify.message( response.message, response.color );
3737

3838
});
3939

@@ -52,7 +52,7 @@ const socket = io.connect( url, { reconnection: true } ); // Set reconnection to
5252
url: url + '/send/' + socket_name,
5353
type: 'POST',
5454
data: JSON.stringify({
55-
content: simple_notification.val(),
55+
message: simple_notification.val(),
5656
color: simple_notification_color.val()
5757
}),
5858
dataType: "json",

public/src/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const socket = io.connect( url, { reconnection: true } ); // Set reconnection to
3333
console.log( `Recevied [${socket_name}]`, response );
3434

3535
// Display notification
36-
notify.message( response.content, response.color );
36+
notify.message( response.message, response.color );
3737

3838
});
3939

@@ -52,7 +52,7 @@ const socket = io.connect( url, { reconnection: true } ); // Set reconnection to
5252
url: url + '/send/' + socket_name,
5353
type: 'POST',
5454
data: JSON.stringify({
55-
content: simple_notification.val(),
55+
message: simple_notification.val(),
5656
color: simple_notification_color.val()
5757
}),
5858
dataType: "json",

0 commit comments

Comments
 (0)