diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 5233c81..e97001b 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2404,7 +2404,9 @@ function doSetSync(oldHash, newHash, data) { }); }; } -function doGetSync(password = '', callback) { +function doGetSync(passedPassword, callback) { + const password = passedPassword === null || passedPassword === undefined ? '' : passedPassword; + function handleCallback() { if (callback) { if (typeof callback !== 'function') { diff --git a/dist/bundle.js b/dist/bundle.js index beef479..144469f 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -3967,9 +3967,8 @@ function doSetSync(oldHash, newHash, data) { }); }; } -function doGetSync() { - var password = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; - var callback = arguments.length > 1 ? arguments[1] : undefined; +function doGetSync(passedPassword, callback) { + var password = passedPassword === null || passedPassword === undefined ? '' : passedPassword; function handleCallback() { if (callback) { diff --git a/src/redux/actions/sync.js b/src/redux/actions/sync.js index 76dfdfa..f83d988 100644 --- a/src/redux/actions/sync.js +++ b/src/redux/actions/sync.js @@ -77,7 +77,9 @@ export function doSetSync(oldHash, newHash, data) { }; } -export function doGetSync(password = '', callback) { +export function doGetSync(passedPassword, callback) { + const password = passedPassword === null || passedPassword === undefined ? '' : passedPassword; + function handleCallback() { if (callback) { if (typeof callback !== 'function') {