Skip to content

Commit 9c96de0

Browse files
committed
init project storage in demo api
1 parent 0bc4275 commit 9c96de0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

frontend/viewer/src/project/demo/in-memory-demo-api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import type {IUpdateService} from '$lib/dotnet-types/generated-types/FwLiteShare
4040
import {type IAvailableUpdate, UpdateResult} from '$lib/dotnet-types/generated-types/FwLiteShared/AppUpdate';
4141
import {type EventBus, useEventBus, ProjectEventBus} from '$lib/services/event-bus';
4242
import type {IJsEventListener} from '$lib/dotnet-types/generated-types/FwLiteShared/Events/IJsEventListener';
43+
import {initProjectStorage} from '$lib/storage';
4344

4445
function pickWs(ws: string, defaultWs: string): string {
4546
return ws === 'default' ? defaultWs : ws;
@@ -105,6 +106,7 @@ export class InMemoryDemoApi implements IMiniLcmJsInvokable {
105106
const eventBus = useEventBus();
106107
const inMemoryLexboxApi = new InMemoryDemoApi(projectContext, eventBus);
107108
projectContext.setup({api: inMemoryLexboxApi, projectName: inMemoryLexboxApi.projectName, projectCode: inMemoryLexboxApi.projectName})
109+
initProjectStorage(projectContext.projectCode);
108110
window.lexbox.ServiceProvider.setService(DotnetService.FwLiteConfig, mockFwLiteConfig);
109111
window.lexbox.ServiceProvider.setService(DotnetService.UpdateService, mockUpdateService);
110112
window.lexbox.ServiceProvider.setService(DotnetService.JsEventListener, mockJsEventListener);

0 commit comments

Comments
 (0)