From 06b2ac41fbc9b080fa30b2410448082e5b2818be Mon Sep 17 00:00:00 2001 From: superdejooo Date: Tue, 5 Nov 2019 00:01:09 +0100 Subject: [PATCH] Add new setChromeWebBadge method --- src/Traits/Categories/AppearanceHelpers.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Traits/Categories/AppearanceHelpers.php b/src/Traits/Categories/AppearanceHelpers.php index d685f03..3104477 100644 --- a/src/Traits/Categories/AppearanceHelpers.php +++ b/src/Traits/Categories/AppearanceHelpers.php @@ -122,4 +122,16 @@ public function setIcon(string $iconPath) ->setParameter('adm_small_icon', $iconPath) ->setParameter('small_icon', $iconPath); } + + /** + * Set the Web Badge only for Chrome 56+ . + * + * @param string $badgePath + * + * @return $this + */ + public function setChromeWebBadge(string $badgePath) + { + return $this->setParameter('chrome_web_badge', $badgePath); + } }