Skip to content

Commit

Permalink
Renamed API function name
Browse files Browse the repository at this point in the history
  • Loading branch information
abuturla committed Jun 20, 2016
1 parent 85b9324 commit 280fcb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/exampleLocalNotifications/widget/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
var intervalId, notificationId, countDown;

function requestPermissions(){
buildfire.notifications.localNotification.hasPermission(function(err, permissionsGranted){
buildfire.notifications.localNotification.requestPermission(function(err, permissionsGranted){
var message = (permissionsGranted) ? "permissions granted" : "permissions rejected";

document.getElementById("outputPR").innerHTML = message;
Expand All @@ -48,6 +48,7 @@

buildfire.notifications.localNotification.schedule(options, function (err, data) {
notificationId = (data.id) ? data.id : null;

var notificationIdDisplay = notificationId || "";

document.getElementById("outputS").innerHTML = "Scheduled notification " + notificationIdDisplay;
Expand Down

0 comments on commit 280fcb2

Please sign in to comment.