File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{% if NOTIFICATIONS_WEBPUSH_ENABLE and notification_types is not defined %}
22 < div class ="wpn-notification-dropdown-footer " title ="{{ lang('NOTIFY_WEBPUSH_DROPDOWN_TITLE') }} ">
33 < span class ="ellipsis-text "> {{ lang('NOTIFY_WEBPUSH_ENABLE_SLIDER') ~ lang('COLON') }}</ span >
4- < button id ="subscribe_webpush " name ="subscribe_webpush " data-l-err ="{{ lang('INFORMATION') }} " data-l-msg ="{{ lang('NOTIFY_WEBPUSH_DENIED') }} ">
4+ < button id ="subscribe_webpush " name ="subscribe_webpush " data-l-err ="{{ lang('INFORMATION') }} " data-l-msg ="{{ lang('NOTIFY_WEBPUSH_DENIED') }} " data-disabled-msg =" {{ lang('NOTIFY_WEBPUSH_DISABLED') }} " >
55 < i class ="icon fa-toggle-off fa-fw icon-lightgray " aria-hidden ="true " title ="{{ lang('NOTIFY_WEBPUSH_SUBSCRIBE') }} "> < span class ="sr-only "> {{ lang('NOTIFY_WEBPUSH_SUBSCRIBE') }}</ span > </ i >
66 </ button >
77 < button id ="unsubscribe_webpush " name ="unsubscribe_webpush " class ="hidden ">
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ function PhpbbWebpush() {
280280 } ) ;
281281 } catch ( error ) {
282282 console . error ( 'Push subscription error:' , error ) ;
283- phpbb . alert ( subscribeButton . getAttribute ( 'data-l-err' ) , subscribeButton . getAttribute ( 'data-l -msg' ) ) ;
283+ phpbb . alert ( subscribeButton . getAttribute ( 'data-l-err' ) , error . message || subscribeButton . getAttribute ( 'data-disabled -msg' ) ) ;
284284 }
285285 }
286286
You can’t perform that action at this time.
0 commit comments