Skip to content

Commit

Permalink
ensure FwLiteConfig is defined for viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jan 14, 2025
1 parent d61a0af commit c25bd3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/viewer/src/ProjectView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
{#if about}
<AboutDialog text={about} />
{/if}
{#if $features.feedback}
{#if $features.feedback && fwLiteConfig.feedbackUrl}
<Button
href={fwLiteConfig.feedbackUrl}
target="_blank"
Expand Down
9 changes: 8 additions & 1 deletion frontend/viewer/src/WebComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import ProjectView from './ProjectView.svelte';
import { getSettings } from 'svelte-ux';
import css from './app.postcss?inline';
import {DotnetService} from '$lib/dotnet-types';
import {FwLitePlatform} from '$lib/dotnet-types/generated-types/FwLiteShared/FwLitePlatform';
let loading = true;
Expand Down Expand Up @@ -33,7 +35,12 @@
abortController.abort();
}
});
window.lexbox.ServiceProvider.setService(DotnetService.FwLiteConfig, {
appVersion: 'lexbox-viewer',
feedbackUrl: '',
os: FwLitePlatform.Web,
useDevAssets: true,//has no effect, but is required
});
const { currentTheme } = getSettings();
</script>

Expand Down

0 comments on commit c25bd3c

Please sign in to comment.