Skip to content

Commit a1dce10

Browse files
committed
fix(generator/background): only enable remote module in tests
1 parent 303c16c commit a1dce10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/templates/base/src/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function createWindow() {
1818
webPreferences: {
1919
<% if (spectronSupport) { %>
2020
// Required for Spectron testing
21-
enableRemoteModule: true,
21+
enableRemoteModule: !!process.env.IS_TEST,
2222
<% } %>
2323
// Use pluginOptions.nodeIntegration, leave this alone
2424
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info

0 commit comments

Comments
 (0)