*Update register to use loadBound
This commit is contained in:
parent
91b1c89bc4
commit
096da60801
|
@ -3,8 +3,10 @@ import { Client, factory } from "@lumeweb/libkernel-universal";
|
|||
const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA";
|
||||
|
||||
export class DnsClient extends Client {
|
||||
public async register(): Promise<void> {
|
||||
return this.callModuleReturn("register");
|
||||
public async register(module: string): Promise<void> {
|
||||
const bag = await this.loadBound(module);
|
||||
const ret = await bag.callModule("register");
|
||||
this.handleError(ret);
|
||||
}
|
||||
public async clear(): Promise<void> {
|
||||
return this.callModuleReturn("clear");
|
||||
|
|
Loading…
Reference in New Issue