Skip to content

Commit 4c1030f

Browse files
authored
Add fix for amasty amp & defered javacript loading
1 parent 130a3de commit 4c1030f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Model/Controller/ResultPlugin.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,15 @@ private function isEnabled()
134134
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
135135
);
136136

137-
/* check if Plumrocket AMP enabled */
137+
138138
if ($enabled) {
139+
140+
/* check if Amasty AMP enabled */
141+
if ($this->request->getParam('is_amp')) {
142+
return false;
143+
}
144+
145+
/* check if Plumrocket AMP enabled */
139146
$isAmpRequest = $this->scopeConfig->getValue(
140147
'pramp/general/enabled',
141148
\Magento\Store\Model\ScopeInterface::SCOPE_STORE

0 commit comments

Comments
 (0)