Skip to content

Commit cc418ee

Browse files
committed
docs
1 parent dfbd8d6 commit cc418ee

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ See full docs at: [API Docs](docs/api.md)
7979

8080
| Date | Version | Description |
8181
| ----------- | ------- | ----------- |
82-
| 2015-06-24 | v0.0.19 | Maintenance |
82+
| 2015-06-24 | v0.0.20 | Maintenance |
8383
| 2015-02-16 | v0.0.7 | Automatic unit tests via karma |
8484
| 2015-02-05 | v0.0.5 | Doc changes |
8585
| 2014-12-30 | v0.0.4 | Doc changes |

angular-web-notification.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,20 @@
134134
* @param {object} [options] - Holds the notification data (web notification API spec for more info)
135135
* @param {function} callback - Called after the show is handled.
136136
* @example
137-
```js
138-
webNotification.showNotification('Example Notification', {
139-
body: 'Notification Text...',
140-
icon: 'my-icon.ico'
141-
}, function onShow(error, hide) {
142-
if (error) {
143-
window.alert('Unable to show notification: ' + error.message);
144-
} else {
145-
setTimeout(function hideNotification() {
146-
hide();
147-
}, 5000);
148-
}
149-
});
150-
```
137+
* ```js
138+
* webNotification.showNotification('Example Notification', {
139+
* body: 'Notification Text...',
140+
* icon: 'my-icon.ico'
141+
* }, function onShow(error, hide) {
142+
* if (error) {
143+
* window.alert('Unable to show notification: ' + error.message);
144+
* } else {
145+
* setTimeout(function hideNotification() {
146+
* hide();
147+
* }, 5000);
148+
* }
149+
* });
150+
* ```
151151
*/
152152
showNotification: function () {
153153
//convert to array to enable modifications

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-web-notification",
3-
"version": "0.0.19",
3+
"version": "0.0.20",
44
"authors": [
55
"Sagie Gur-Ari <[email protected]>"
66
],

docs/api.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ case of no errors) and a 'hide' function which can be used to hide the notificat
3232

3333
**Example**
3434
```js
35-
webNotification.showNotification('Example Notification', {
36-
body: 'Notification Text...',
37-
icon: 'my-icon.ico'
38-
}, function onShow(error, hide) {
39-
if (error) {
40-
window.alert('Unable to show notification: ' + error.message);
41-
} else {
42-
setTimeout(function hideNotification() {
43-
hide();
44-
}, 5000);
45-
}
46-
});
47-
```
35+
webNotification.showNotification('Example Notification', {
36+
body: 'Notification Text...',
37+
icon: 'my-icon.ico'
38+
}, function onShow(error, hide) {
39+
if (error) {
40+
window.alert('Unable to show notification: ' + error.message);
41+
} else {
42+
setTimeout(function hideNotification() {
43+
hide();
44+
}, 5000);
45+
}
46+
});
47+
```

0 commit comments

Comments
 (0)