diff --git a/doc/index.html b/doc/index.html index d0ac66f..58219cb 100644 --- a/doc/index.html +++ b/doc/index.html @@ -4,7 +4,7 @@
web-midi-player
#stop
-
- #setLogger
-
-
#emitEvent
+
+
+ #setLogger
+
@@ -954,7 +954,7 @@
- setLogger(configuration?)
+ emitEvent(payload)
Updates the configuration of the logger.
+Send custom payloads to the event logger.
@@ -989,9 +989,9 @@configuration
payload
undefined
)
+ string?
false
)
+ string?
const eventLogger = (payload) => {
- console.log('Received event:', payload.event);
-}
-midiPlayer.setLogger({ eventLogger });
+ const event = 'MIDI_CUSTOM_EVENT';
+const message = 'Something happened.';
+midiPlayer.emitEvent({ event, message });
@@ -1057,7 +1052,7 @@
- emitEvent(payload)
+ setLogger(configuration?)
Send custom payloads to the event logger.
+Updates the configuration of the logger.
@@ -1092,9 +1087,9 @@payload
configuration
undefined
)
false
)
const event = 'MIDI_CUSTOM_EVENT';
-const message = 'Something happened.';
-midiPlayer.emitEvent({ event, message });
+ const eventLogger = (payload) => {
+ console.log('Received event:', payload.event);
+}
+midiPlayer.setLogger({ eventLogger });
diff --git a/example/react/index.html b/example/react/index.html
index f1d2223..3b981d2 100644
--- a/example/react/index.html
+++ b/example/react/index.html
@@ -5,5 +5,5 @@
-
+