File tree Expand file tree Collapse file tree
frontend/viewer/src/project/demo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import type {IUpdateService} from '$lib/dotnet-types/generated-types/FwLiteShare
4040import { type IAvailableUpdate , UpdateResult } from '$lib/dotnet-types/generated-types/FwLiteShared/AppUpdate' ;
4141import { type EventBus , useEventBus , ProjectEventBus } from '$lib/services/event-bus' ;
4242import type { IJsEventListener } from '$lib/dotnet-types/generated-types/FwLiteShared/Events/IJsEventListener' ;
43+ import { initProjectStorage } from '$lib/storage' ;
4344
4445function 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 ) ;
You can’t perform that action at this time.
0 commit comments