bilca commited on
Commit
fc95b7f
·
verified ·
1 Parent(s): be90f0b

Update js_scripts/index.js

Browse files
Files changed (1) hide show
  1. js_scripts/index.js +16 -1
js_scripts/index.js CHANGED
@@ -765,4 +765,19 @@ const currentScriptTag = document.currentScript;
765
  setupWheelHandlers();
766
 
767
  // Hide progress dialog when everything is set up
768
- progress
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
765
  setupWheelHandlers();
766
 
767
  // Hide progress dialog when everything is set up
768
+ progressDialog.style.display = 'none';
769
+
770
+ // Mark viewer as initialized
771
+ viewerInitialized = true;
772
+
773
+ console.log("PLY viewer initialization complete");
774
+ });
775
+
776
+ } catch (error) {
777
+ console.error("Error initializing PlayCanvas viewer:", error);
778
+ progressDialog.innerHTML = `<p style="color: red">Error loading viewer: ${error.message}</p>`;
779
+ viewerInitialized = false;
780
+ app = null;
781
+ }
782
+ }
783
+ })();