We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c88fd2c commit 65a6996Copy full SHA for 65a6996
packages/build-config/src/runtime.ts
@@ -4,7 +4,7 @@ const RuntimeConfig = {
4
debug: {},
5
};
6
7
-const settings = sessionStorage.getItem('WarpDriveRuntimeConfig');
+const settings = globalThis.sessionStorage?.getItem('WarpDriveRuntimeConfig');
8
if (settings) {
9
Object.assign(RuntimeConfig, JSON.parse(settings));
10
}
@@ -23,5 +23,5 @@ export function getRuntimeConfig(): typeof RuntimeConfig {
23
*/
24
export function setLogging(config: Partial<LOG_CONFIG>): void {
25
Object.assign(RuntimeConfig.debug, config);
26
- sessionStorage.setItem('WarpDriveRuntimeConfig', JSON.stringify(RuntimeConfig));
+ globalThis.sessionStorage?.setItem('WarpDriveRuntimeConfig', JSON.stringify(RuntimeConfig));
27
0 commit comments