mirror of
https://github.com/embarklabs/EmbarkJS.git
synced 2025-02-15 13:57:37 +00:00
general tidy up
This commit is contained in:
parent
e7ab2094ae
commit
8282b4ffbd
2
.gitignore
vendored
2
.gitignore
vendored
@ -8,6 +8,6 @@ package
|
|||||||
|
|
||||||
embark.min.js
|
embark.min.js
|
||||||
embarkjs-*.tgz
|
embarkjs-*.tgz
|
||||||
TODO
|
|
||||||
NOTES
|
NOTES
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
TODO
|
||||||
|
@ -6,7 +6,7 @@ EmbarkJS.checkWeb3 = function () {
|
|||||||
_EmbarkJS.checkWeb3.call(this);
|
_EmbarkJS.checkWeb3.call(this);
|
||||||
if (!this.web3 && typeof (web3) !== 'undefined') {
|
if (!this.web3 && typeof (web3) !== 'undefined') {
|
||||||
this.web3 = web3;
|
this.web3 = web3;
|
||||||
} else if (!this.web3) {
|
} else if (!this.web3) {
|
||||||
this.web3 = window.web3;
|
this.web3 = window.web3;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -388,7 +388,7 @@ EmbarkJS.Names.register = function(name, options) {
|
|||||||
throw new Error('Name system provider not set; e.g EmbarkJS.Names.setProvider("ens")');
|
throw new Error('Name system provider not set; e.g EmbarkJS.Names.setProvider("ens")');
|
||||||
}
|
}
|
||||||
return this.currentNameSystems.register(name, options);
|
return this.currentNameSystems.register(name, options);
|
||||||
}
|
};
|
||||||
|
|
||||||
EmbarkJS.Utils = {
|
EmbarkJS.Utils = {
|
||||||
fromAscii: function (str) {
|
fromAscii: function (str) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user