Fix typo in onConnect method name

This commit is contained in:
Talia 2021-08-02 23:00:33 +02:00
parent 7a299cf07c
commit d620c8528a
No known key found for this signature in database
GPG key ID: AD727AD22802D0D6

View file

@ -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 = []
} }