Skip to content

Commit

Permalink
Add notification logic when time out.
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunmoAhn committed Oct 26, 2018
1 parent fc39e1f commit c4f1414
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/page/timer.js
Expand Up @@ -72,6 +72,14 @@ function countingMode(timer) {
} else {
timer.stopTimeProgress();
settingMode(timer);
const text = document.getElementsByClassName('Comment__input')[0].value;
const notification = {
title: 'Time is up',
body: text,
icon: path.join
}

new Notification(notification.title, notification);
}
}

Expand Down

0 comments on commit c4f1414

Please sign in to comment.