mirror of
https://github.com/embarklabs/EmbarkJS.git
synced 2025-01-23 10:50:15 +00:00
Add register function for IPNS
This commit is contained in:
parent
c8bed200c8
commit
33e15a3dbe
@ -46,4 +46,11 @@ Names.registerSubDomain = function(name, address, callback) {
|
||||
return this.currentNameSystems.registerSubDomain(name, address, callback);
|
||||
};
|
||||
|
||||
Names.register = function(name, callback) {
|
||||
if (!this.currentNameSystems) {
|
||||
throw new Error(this.noProviderError);
|
||||
}
|
||||
return this.currentNameSystems.register(name, callback);
|
||||
};
|
||||
|
||||
export default Names;
|
||||
|
Loading…
x
Reference in New Issue
Block a user