mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 00:24:53 +00:00
Minor fixes
This commit is contained in:
@ -59,7 +59,7 @@ async function registerForPushNotificationsAsync() {
|
||||
}
|
||||
|
||||
if (finalStatus !== 'granted') {
|
||||
alert('Failed to get push token for push notification!');
|
||||
// alert('Failed to get push token for push notification!');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -76,11 +76,11 @@ async function registerForPushNotificationsAsync() {
|
||||
console.log('Push Token:', token);
|
||||
return token;
|
||||
} catch (error) {
|
||||
alert(`Error getting push token: ${error}`);
|
||||
// alert(`Error getting push token: ${error}`);
|
||||
throw error;
|
||||
}
|
||||
} else {
|
||||
alert('Must use a physical device for push notifications');
|
||||
// alert('Must use a physical device for push notifications');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user