We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b5ee9c commit a14a3b7Copy full SHA for a14a3b7
notification/method/webpush.php
@@ -495,13 +495,19 @@ protected function get_board_url()
495
* @param string $endpoint
496
*
497
* @return void
498
- * @throws \Exception
499
*/
500
protected function set_endpoint_padding(\Minishlink\WebPush\WebPush $web_push, string $endpoint): void
501
{
502
if (strpos($endpoint, 'mozilla.com') || strpos($endpoint, 'mozaws.net'))
503
504
- $web_push->setAutomaticPadding(self::MOZILLA_FALLBACK_PADDING);
+ try
+ {
505
+ $web_push->setAutomaticPadding(self::MOZILLA_FALLBACK_PADDING);
506
+ }
507
+ catch (\Exception $e)
508
509
+ // This shouldn't happen since we won't pass padding length outside limits
510
511
}
512
513
0 commit comments