更新web3-eth-account的补丁
This commit is contained in:
parent
b5aecc98c7
commit
4d92674c27
@ -1,5 +1,5 @@
|
|||||||
diff --git a/node_modules/web3-eth-accounts/lib/index.js b/node_modules/web3-eth-accounts/lib/index.js
|
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
|
--- a/node_modules/web3-eth-accounts/lib/index.js
|
||||||
+++ b/node_modules/web3-eth-accounts/lib/index.js
|
+++ b/node_modules/web3-eth-accounts/lib/index.js
|
||||||
@@ -23,7 +23,7 @@
|
@@ -23,7 +23,7 @@
|
||||||
@ -16,7 +16,7 @@ index a176dd9..ec963c0 100644
|
|||||||
function storageAvailable(type) {
|
function storageAvailable(type) {
|
||||||
var storage;
|
var storage;
|
||||||
+ if (typeof cc !== undefined) {
|
+ if (typeof cc !== undefined) {
|
||||||
+ localStorage = window.localStorage || cc.sys.localStorage;
|
+ return true
|
||||||
+ }
|
+ }
|
||||||
try {
|
try {
|
||||||
storage = self[type];
|
storage = self[type];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user