@@ -2,6 +2,7 @@ import { provide } from '@lit/context';
22import type { ReactiveControllerHost } from 'lit' ;
33import { html , LitElement } from 'lit' ;
44import { property } from 'lit/decorators.js' ;
5+ import { fromBase64ToString } from '@env/base64' ;
56import type { CustomEditorIds , WebviewIds , WebviewViewIds } from '../../../constants.views' ;
67import type { Deferrable } from '../../../system/function/debounce' ;
78import { debounce } from '../../../system/function/debounce' ;
@@ -55,8 +56,8 @@ export abstract class GlAppHost<
5556 @provide ( { context : telemetryContext } )
5657 protected _telemetry ! : TelemetryContext ;
5758
58- @property ( { type : Object , noAccessor : true } )
59- private bootstrap ! : State ;
59+ @property ( { type : String , noAccessor : true } )
60+ private bootstrap ! : string ;
6061 protected onThemeUpdated ?( e : ThemeChangeEvent ) : void ;
6162
6263 get state ( ) : State {
@@ -83,7 +84,7 @@ export abstract class GlAppHost<
8384 this . _ipc = new HostIpc ( this . name ) ;
8485 this . _ipc . sendCommand ( WebviewReadyCommand , undefined ) ;
8586
86- const state = this . bootstrap ;
87+ const state : State = JSON . parse ( fromBase64ToString ( this . bootstrap ) ) ;
8788 this . bootstrap = undefined ! ;
8889 this . _ipc . replaceIpcPromisesWithPromises ( state ) ;
8990 this . onPersistState ?.( state ) ;
0 commit comments