Fix typo in onConnect method name
This commit is contained in:
parent
7a299cf07c
commit
d620c8528a
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export class Better extends HTMLElement {
|
||||||
|
|
||||||
// Resolves all `connected promises
|
// Resolves all `connected promises
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
if ("onConnec" in this) this.onConnect()
|
if ("onConnect" in this) this.onConnect()
|
||||||
this.#connected.forEach( e => e.yes(this) )
|
this.#connected.forEach( e => e.yes(this) )
|
||||||
this.#connected = []
|
this.#connected = []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue