diff options
author | catch <catch@35733.no-reply.drupal.org> | 2020-10-21 11:41:33 +0100 |
---|---|---|
committer | catch <catch@35733.no-reply.drupal.org> | 2020-10-21 11:41:33 +0100 |
commit | 89f6acb734e93d22468e25f59e0bf59ca2d8aaa5 (patch) | |
tree | d594c0079c7c557feb5fbcbb76c3a67eca744d8f /core/misc/jquery.cookie.shim.es6.js | |
parent | da115f6ccffb6c9aeb368b56b8664332968a65e6 (diff) | |
download | drupal-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.js | 11 |
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]; } |