We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a7000e commit ee76b47Copy full SHA for ee76b47
styles/all/template/webpush.js
@@ -281,6 +281,11 @@ function PhpbbWebpush() {
281
phpbb.alert(ajaxErrorTitle, error);
282
});
283
} catch (error) {
284
+ promptDenied.set(); // deny the prompt on error to prevent repeated prompting
285
+ const popup = document.getElementById('wpn_popup_prompt');
286
+ if (popup) {
287
+ popup.style.display = 'none';
288
+ }
289
console.error('Push subscription error:', error);
290
phpbb.alert(subscribeButton.getAttribute('data-l-err'), error.message || subscribeButton.getAttribute('data-disabled-msg'));
291
}
0 commit comments