gemini-viewer-examples icon indicating copy to clipboard operation
gemini-viewer-examples copied to clipboard

is addHotpoint() asynchronous?

Open jshenguru opened this issue 1 year ago • 2 comments

The document.getElementByID() gets nothing right after the viewer.addHotpoint(). Calling document.getElementByID() 10 seconds after the viewer.addHotpoint() will get the DOM object. Is there an event I can wait to run the document.getElementByID() ? Also, it does not get me the HTMLElement, it returns Node.

jshenguru avatar Mar 24 '23 05:03 jshenguru