Is it possible to create a custom event and catch it? I tried the code below and the event doesn't seem to get fired.
let event = new Event("hello");
document.body.dispatchEvent(event);
...
document.addEventListener("hello", () => {
console.log("CAUGHT EVENT");
});
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.