Skip to content

Commit

Permalink
Merge pull request #27 from SpotlerSoftware/lax-cookie-fix
Browse files Browse the repository at this point in the history
CP-1100: Switch to magento cookies plugin
  • Loading branch information
808brinks authored Feb 7, 2022
2 parents a3b9a53 + 33c8453 commit 4709898
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mailplus/mailplus-connector",
"description": "The MailPlus connector for magento 2",
"type": "magento2-module",
"version": "1.7.4",
"version": "1.8.0",
"license": [
"OSL-3.0"
],
Expand Down
5 changes: 2 additions & 3 deletions view/frontend/web/js/set-mp-cookie.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require([
"jquery",
"jquery/jquery.cookie"
"mage/cookies"
], function ($) {
//<![CDATA[
$(document).ready(function () {
Expand All @@ -18,7 +17,7 @@ require([

var mpId = getParameterByName("mpid");
if (mpId) {
$.cookie("mpId", mpId);
$.mage.cookies.set("mpId", mpId, {samesite: 'lax', path: '/', lifetime: -1});
}
});
//]]>
Expand Down

0 comments on commit 4709898

Please sign in to comment.