From 4d92674c27e2f47c206ced9b680fa8a6b38e4c06 Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Thu, 7 Jul 2022 13:01:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0web3-eth-account=E7=9A=84?= =?UTF-8?q?=E8=A1=A5=E4=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- patches/web3-eth-accounts+1.7.4.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];