Skip to content

Commit

Permalink
https://github.com/strukturart/greg/issues/3
Browse files Browse the repository at this point in the history
  • Loading branch information
strukturart committed Jan 3, 2022
1 parent 36f58c5 commit e626159
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions application/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ if ("b2g.alarmManager" in navigator) {
.then((registration) => {
registration.systemMessageManager.subscribe("alarm").then(
(rv) => {
console.log(
'Successfully subscribe system messages of name "alarm".'
);
alert('Successfully subscribe system messages of name "alarm".');
},
(error) => {
console.log("Fail to subscribe system message, error: " + error);
alert("Fail to subscribe system message, error: " + error);
}
);
});
Expand Down

0 comments on commit e626159

Please sign in to comment.