Skip to content

Commit f6dcfc7

Browse files
committed
Don't require email templates presence for webpush notifications. Fixes #91.
1 parent 6ab4e67 commit f6dcfc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

notification/method/webpush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function get_type(): string
9797
*/
9898
public function is_available(type_interface $notification_type = null): bool
9999
{
100-
return parent::is_available($notification_type) && $this->config['wpn_webpush_enable']
100+
return $this->config['wpn_webpush_enable']
101101
&& !empty($this->config['wpn_webpush_vapid_public']) && !empty($this->config['wpn_webpush_vapid_private']);
102102
}
103103

0 commit comments

Comments
 (0)