Skip to content

Commit

Permalink
change svelte app binding to look for id="svelte-app" instead of ju…
Browse files Browse the repository at this point in the history
…st `app`
  • Loading branch information
hahn-kev committed Dec 13, 2024
1 parent 34c2552 commit 0973774
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/FwLite/FwLiteShared/Layout/SvelteLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
services[key] = service;
};
</script>
<div id="app" class="contents">
<div id="svelte-app" class="contents">
</div>

@Body
Expand Down
2 changes: 1 addition & 1 deletion frontend/viewer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</style>
</head>
<body>
<div id="app" class="contents">
<div id="svelte-app" class="contents">
<lexbox-svelte projectName="Test project"></lexbox-svelte>
</div>
<script type="module" src="./src/main.ts"></script>
Expand Down
2 changes: 1 addition & 1 deletion frontend/viewer/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {setupDotnetServiceProvider} from './lib/services/service-provider-dotnet

setupDotnetServiceProvider();
new App({
target: document.getElementById('app')!,
target: document.getElementById('svelte-app')!,
});

/*/// v2 Run with web-component in shadow dom
Expand Down

0 comments on commit 0973774

Please sign in to comment.