Merge pull request #9 from embark-framework/feature/add-ipns-interface
Add register function for IPNS
This commit is contained in:
commit
8c0492023b
|
@ -46,4 +46,11 @@ Names.registerSubDomain = function(name, address, callback) {
|
||||||
return this.currentNameSystems.registerSubDomain(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;
|
export default Names;
|
||||||
|
|
Loading…
Reference in New Issue