summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/jquery.cookie.shim.es6.js
diff options
context:
space:
mode:
authorcatch <catch@35733.no-reply.drupal.org>2020-10-21 11:41:33 +0100
committercatch <catch@35733.no-reply.drupal.org>2020-10-21 11:41:33 +0100
commit89f6acb734e93d22468e25f59e0bf59ca2d8aaa5 (patch)
treed594c0079c7c557feb5fbcbb76c3a67eca744d8f /core/misc/jquery.cookie.shim.es6.js
parentda115f6ccffb6c9aeb368b56b8664332968a65e6 (diff)
downloaddrupal-89f6acb734e93d22468e25f59e0bf59ca2d8aaa5.tar.gz
drupal-89f6acb734e93d22468e25f59e0bf59ca2d8aaa5.zip
Issue #3174884 by raman.b, alexpott, lauriii, zrpnr, nod_: Update yarn dependencies for Drupal 9.1.0
Diffstat (limited to 'core/misc/jquery.cookie.shim.es6.js')
-rw-r--r--core/misc/jquery.cookie.shim.es6.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/core/misc/jquery.cookie.shim.es6.js b/core/misc/jquery.cookie.shim.es6.js
index 0e41742491d5..1751114b2d89 100644
--- a/core/misc/jquery.cookie.shim.es6.js
+++ b/core/misc/jquery.cookie.shim.es6.js
@@ -23,7 +23,7 @@
* @return {boolean}
* True if the object is a function.
*/
- const isFunction = obj =>
+ const isFunction = (obj) =>
Object.prototype.toString.call(obj) === '[object Function]';
/**
@@ -39,10 +39,7 @@
*/
const parseCookieValue = (value, parseJson) => {
if (value.indexOf('"') === 0) {
- value = value
- .slice(1, -1)
- .replace(/\\"/g, '"')
- .replace(/\\\\/g, '\\');
+ value = value.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
}
try {
@@ -148,7 +145,7 @@
}
const cookieSetter = cookies.withConverter({
- write: cookieValue => encodeURIComponent(cookieValue),
+ write: (cookieValue) => encodeURIComponent(cookieValue),
});
value =
@@ -177,7 +174,7 @@
}
const results = cookiesShim.get();
- Object.keys(results).forEach(resultKey => {
+ Object.keys(results).forEach((resultKey) => {
if (results[resultKey] === undefined) {
delete results[resultKey];
}