diff --git a/patches/web3-eth-accounts+1.7.4.patch b/patches/web3-eth-accounts+1.7.4.patch index d4239e7..ae1befd 100644 --- a/patches/web3-eth-accounts+1.7.4.patch +++ b/patches/web3-eth-accounts+1.7.4.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/web3-eth-accounts/lib/index.js b/node_modules/web3-eth-accounts/lib/index.js -index a176dd9..ec963c0 100644 +index a176dd9..27064fc 100644 --- a/node_modules/web3-eth-accounts/lib/index.js +++ b/node_modules/web3-eth-accounts/lib/index.js @@ -23,7 +23,7 @@ @@ -16,7 +16,7 @@ index a176dd9..ec963c0 100644 function storageAvailable(type) { var storage; + if (typeof cc !== undefined) { -+ localStorage = window.localStorage || cc.sys.localStorage; ++ return true + } try { storage = self[type];