Skip to content

Commit

Permalink
fix(#61): 🐛 Ensure potreeViewer is always enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
gautegf committed Nov 10, 2025
1 parent e6f738d commit eb9e1b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ async function init() {
console.error('Failed to load country borders:', error)
}

if (!window.viewer) {
window.viewer = window.potreeViewer
}

window.potreeViewer = await createPotreeViewer(
'potree_render_area',
POTREE_POINTCLOUD_URLS,
Expand Down

0 comments on commit eb9e1b5

Please sign in to comment.