Skip to content

Commit

Permalink
fix: call initializeDom in dom file because some users might not us…
Browse files Browse the repository at this point in the history
…e top level index
  • Loading branch information
farfromrefug committed Jul 4, 2024
1 parent 184475d commit baa0361
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ function initializeLogger() {
});
}

let initializedDom = false;
export function initializeDom() {
if ( initializedDom) {
return;
}
initializedDom = true;
initializeLogger();
if (typeof __UI_USE_EXTERNAL_RENDERER__ != "undefined" && __UI_USE_EXTERNAL_RENDERER__) {
} else {
Expand All @@ -96,3 +101,4 @@ export function initializeDom() {
registerSvelteElements();
return installGlobalShims();
}
initializeDom();

0 comments on commit baa0361

Please sign in to comment.