Skip to content

Commit 65a6996

Browse files
committed
ensure fastboot works
1 parent c88fd2c commit 65a6996

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/build-config/src/runtime.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const RuntimeConfig = {
44
debug: {},
55
};
66

7-
const settings = sessionStorage.getItem('WarpDriveRuntimeConfig');
7+
const settings = globalThis.sessionStorage?.getItem('WarpDriveRuntimeConfig');
88
if (settings) {
99
Object.assign(RuntimeConfig, JSON.parse(settings));
1010
}
@@ -23,5 +23,5 @@ export function getRuntimeConfig(): typeof RuntimeConfig {
2323
*/
2424
export function setLogging(config: Partial<LOG_CONFIG>): void {
2525
Object.assign(RuntimeConfig.debug, config);
26-
sessionStorage.setItem('WarpDriveRuntimeConfig', JSON.stringify(RuntimeConfig));
26+
globalThis.sessionStorage?.setItem('WarpDriveRuntimeConfig', JSON.stringify(RuntimeConfig));
2727
}

0 commit comments

Comments
 (0)