Skip to content

Commit c1b7982

Browse files
committed
MC-5378: "Edit with Page Builder" button does not appear for Product or Category in IE11
- Match on touch IE 11 user agent strings as well as standard
1 parent b8298de commit c1b7982

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/code/Magento/PageBuilder/Block/Adminhtml/Html/Head/BabelPolyfill.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
*/
1818
class BabelPolyfill extends Template
1919
{
20-
const IE_11_USER_AGENT = 'Trident/7.0; rv:11.0';
21-
2220
/**
2321
* @var \Magento\PageBuilder\Model\ConfigInterface
2422
*/
@@ -85,6 +83,7 @@ public function getCacheKeyInfo() : array
8583
*/
8684
private function isIe11() : bool
8785
{
88-
return strpos($this->httpHeader->getHttpUserAgent(), self::IE_11_USER_AGENT) !== false;
86+
return strpos($this->httpHeader->getHttpUserAgent(), 'rv:11.0') !== false
87+
&& strpos($this->httpHeader->getHttpUserAgent(), 'Trident/7.0;') !== false;
8988
}
9089
}

0 commit comments

Comments
 (0)