mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
[ticket/17344] Show an alert when webpush subscribing is denied
PHPBB-17344
This commit is contained in:
@@ -150,6 +150,7 @@ function PhpbbWebpush() {
|
||||
// Prevent the user from clicking the subscribe button multiple times.
|
||||
const result = await Notification.requestPermission();
|
||||
if (result === 'denied') {
|
||||
phpbb.alert(subscribeButton.getAttribute('data-l-err'), subscribeButton.getAttribute('data-l-msg'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user