×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: bejoy balan
Added: Oct 5, 2020 5:06 AM
Views: 4504
Tags: m2 pwa
  1. --- a/vendor/magento/module-upward-connector/Plugin/Magento/Framework/App/AreaList.php  2020-05-07 16:11:19.000000000 +0530
  2. +++ b/vendor/magento/module-upward-connector/Plugin/Magento/Framework/App/AreaList.php  2020-05-07 15:33:47.000000000 +0530
  3. @@ -59,6 +59,10 @@
  4.              return $result;
  5.          }
  6.  
  7. +        /** Directly using $_COOKIE variable to keep the patch simple and also because this features is only needed during development. It should be removed before going live*/
  8. +        if (isset($_COOKIE['skip-upward']) && $_COOKIE['skip-upward']==true ) {
  9. +            return $result;
  10. +        }
  11.          return 'pwa';
  12.      }
  13.  }
  14.