Skip to content

Commit

Permalink
Merge pull request #7832 from magento-atwix-pyrrans/AC-6361-jquery-co…
Browse files Browse the repository at this point in the history
…okie-fix

[Pyrrans] AC-6361: Fix jquery.cookie dependency
  • Loading branch information
Andrii Beziazychnyi authored Aug 25, 2022
2 parents 1e46eec + bc2b48a commit 82ecd9d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/code/Magento/Theme/view/base/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ var config = {
'jquery/validate': 'jquery/jquery.validate',
'jquery/file-uploader': 'jquery/fileUploader/jquery.fileuploader',
'prototype': 'legacy-build.min',
'jquery/jquery.cookie': 'js-cookie/cookie-wrapper',
'jquery/jquery-storageapi': 'js-storage/storage-wrapper',
'text': 'mage/requirejs/text',
'domReady': 'requirejs/domReady',
Expand Down
11 changes: 11 additions & 0 deletions lib/web/jquery/jquery.cookie.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

define([
'jquery',
'js-cookie/cookie-wrapper'
], function () {

});
2 changes: 1 addition & 1 deletion lib/web/js-storage/js.storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(function (factory) {
var registeredInModuleLoader = false;
if (typeof define === 'function' && define.amd) {
define(['jquery', 'js-cookie/cookie-wrapper'], factory);
define(['jquery', 'jquery/jquery.cookie'], factory);
registeredInModuleLoader = true;
}
if (typeof exports === 'object') {
Expand Down

0 comments on commit 82ecd9d

Please sign in to comment.