Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kyuna312 committed Feb 4, 2023
1 parent 7e60c16 commit 63bcda2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ const createWindow = async () => {
visualEffectState: 'active',
webPreferences: {
preload: join(__dirname, '../../preload/dist/index.cjs'),
contextIsolation: env.MODE !== 'test', // Spectron tests can't work with contextIsolation: true
enableRemoteModule: env.MODE === 'test', // Spectron tests can't work with enableRemoteModule: false
},
// contextIsolation: env.MODE !== 'test', // Spectron tests can't work with contextIsolation: true
// enableRemoteModule: env.MODE === 'production' // Spectron tests can't work with enableRemoteModule: false
}
});

/**
Expand Down

0 comments on commit 63bcda2

Please sign in to comment.