We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bf88ff commit 6a7000eCopy full SHA for 6a7000e
1 file changed
styles/all/template/webpush.js
@@ -237,6 +237,8 @@ function PhpbbWebpush() {
237
async function subscribeButtonHandler(event) {
238
event.preventDefault();
239
240
+ subscribeButton.addEventListener('click', subscribeButtonHandler);
241
+
242
try {
243
// Prevent the user from clicking the subscribe button multiple times.
244
const result = await Notification.requestPermission();
0 commit comments