Skip to content

Commit

Permalink
Adding the icon parameter to the action method.
Browse files Browse the repository at this point in the history
Adding the icon parameter to the action method, which is supported by Chrome, Opera and Microsoft Edge as well.
  • Loading branch information
themustafaomar authored Jan 18, 2020
1 parent 5910eee commit 0085ee3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/WebPushMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ public function title($value)
*
* @param string $title
* @param string $action
* @param string $icon
* @return $this
*/
public function action($title, $action)
public function action($title, $action, $icon = null)
{
$this->actions[] = compact('title', 'action');
$this->actions[] = compact('title', 'action', 'icon');

return $this;
}
Expand Down

0 comments on commit 0085ee3

Please sign in to comment.