Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
futahei committed Feb 22, 2023
1 parent 3749190 commit 49a38f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/figni-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ export default class FigniViewerElement extends HTMLElement {
})
observer.observe(this, { childList: true })
this.querySelectorAll('[slot^="hotspot-"]').forEach((hotspot) => {
this.#hotspots.push(this.appendChild(hotspot))
if (hotspot.parentNode !== this.base) {
this.#hotspots.push(this.appendChild(hotspot))
}
})
this.addEventListener('load', () => {
setTimeout(() => {
Expand Down

0 comments on commit 49a38f1

Please sign in to comment.