From 0db1e2460d89976c3ea3415c2dff248e00b15f92 Mon Sep 17 00:00:00 2001 From: Peter Prince Date: Thu, 1 Dec 2022 10:23:12 +0000 Subject: [PATCH] Fix missing argument in Javascript example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 553dc21..06e8f9c 100644 --- a/README.md +++ b/README.md @@ -51,13 +51,13 @@ Below is an example of their use: ```javascript var audioMothChimeConnector = new AudioMothChimeConnector(); - document.getElementById("chime_button").addEventListener("click", function () { + document.getElementById("chime_button").addEventListener("click", () => { document.getElementById("chime_button").disabled = true; var date = new Date(); - audioMothChimeConnector.playTime(function () { + audioMothChimeConnector.playTime(date, () => { document.getElementById("chime_button").disabled = false;