mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-01 21:43:26 +00:00
- fix newsfeed and calendar e2e tests so they don't need `--forceExit` anymore - `--forceExit` should stay in test runs to avoid running until test limit in case of errors - remove mocking console, not needed anymore - configFactory-stuff should not run in browser (otherwise we get errors `[ReferenceError: exports is not defined]`)
20 lines
339 B
JavaScript
20 lines
339 B
JavaScript
if (typeof exports === "object") {
|
|
// running in nodejs (not in browser)
|
|
exports.configFactory = (options) => {
|
|
return Object.assign(
|
|
{
|
|
electronOptions: {
|
|
webPreferences: {
|
|
nodeIntegration: true,
|
|
enableRemoteModule: true,
|
|
contextIsolation: false
|
|
}
|
|
},
|
|
|
|
modules: []
|
|
},
|
|
options
|
|
);
|
|
};
|
|
}
|