fix: address CodeRabbit review round 3

This commit is contained in:
2026-04-10 18:57:49 -07:00
committed by sudacode
parent 735fc26525
commit 18940b57c0
16 changed files with 305 additions and 39 deletions

View File

@@ -95,6 +95,7 @@ function withRuntimeOptionsModal(
Object.defineProperty(globalThis, 'window', {
configurable: true,
writable: true,
value: {
electronAPI: {
getRuntimeOptions,
@@ -109,6 +110,7 @@ function withRuntimeOptionsModal(
Object.defineProperty(globalThis, 'document', {
configurable: true,
writable: true,
value: {
createElement: () => createElementStub(),
},
@@ -152,10 +154,12 @@ function withRuntimeOptionsModal(
.finally(() => {
Object.defineProperty(globalThis, 'window', {
configurable: true,
writable: true,
value: previousWindow,
});
Object.defineProperty(globalThis, 'document', {
configurable: true,
writable: true,
value: previousDocument,
});
});