From d620c8528a73cc209b288db6e9dcbe179fb631df Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 2 Aug 2021 23:00:33 +0200 Subject: [PATCH] Fix typo in onConnect method name --- better.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/better.js b/better.js index 657a0e4..21dfbb0 100644 --- a/better.js +++ b/better.js @@ -51,7 +51,7 @@ export class Better extends HTMLElement { // Resolves all `connected promises connectedCallback() { - if ("onConnec" in this) this.onConnect() + if ("onConnect" in this) this.onConnect() this.#connected.forEach( e => e.yes(this) ) this.#connected = [] }