We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e945b commit 203a89eCopy full SHA for 203a89e
examples/typescript-vite/src/counter.ts
examples/typescript-vite/src/main.ts
@@ -4,9 +4,8 @@ import "./style.css";
4
async function load() {
5
const container = document.querySelector(".container") as HTMLElement;
6
7
- // Wait for SDK script to load (CDN only)
8
- while (!window.NutrientViewer) {
9
- await new Promise((resolve) => setTimeout(resolve, 100));
+ if (!window.NutrientViewer) {
+ return;
10
}
11
12
// Ensure there's only one NutrientViewer instance
0 commit comments