File tree Expand file tree Collapse file tree 4 files changed +29
-29
lines changed Expand file tree Collapse file tree 4 files changed +29
-29
lines changed Original file line number Diff line number Diff 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 |
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 ],
Original file line number Diff line number Diff 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+ ```
You can’t perform that action at this time.
0 commit comments