Skip to content

Commit

Permalink
jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
s-a committed Jan 25, 2016
1 parent 84c64a1 commit 8519851
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"white" : true,
"indent" : 2,
"maxdepth" : 3,
"maxcomplexity" : 8,
"maxcomplexity" : 9,
"maxparams" : 3,
"maxstatements" : 40
}
5 changes: 3 additions & 2 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ window.addEventListener('load',function(){


var notify = function (msg) {
var notification = null;
try{
Notification.requestPermission();
var notification = new Notification(msg.title, { body: msg.text, icon: '../logo/icon.png' });
notification = new Notification(msg.title, { body: msg.text, icon: '../logo/icon.png' });
} catch(e){
console.error(e);
console.error(e, notification);
}
}

Expand Down

0 comments on commit 8519851

Please sign in to comment.