File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,10 @@ export default function appConfigRollup({
59
59
const config = (globalNamespace.${ privateName } || configValue);
60
60
61
61
// if the global is frozen then it was set by electron and we can't change it, but we'll set it if we can
62
- if (!Object.isFrozen(globalNamespace.${ privateName } )) {
62
+ if (
63
+ typeof globalNamespace.${ privateName } === 'undefined' ||
64
+ !Object.isFrozen(globalNamespace.${ privateName } )
65
+ ) {
63
66
globalNamespace.${ privateName } = config;
64
67
}
65
68
` ;
Original file line number Diff line number Diff line change @@ -48,7 +48,10 @@ const loader = function AppConfigLoader(this: Loader) {
48
48
const config = (globalNamespace.${ privateName } || configValue);
49
49
50
50
// if the global is frozen then it was set by electron and we can't change it, but we'll set it if we can
51
- if (!Object.isFrozen(globalNamespace.${ privateName } )) {
51
+ if (
52
+ typeof globalNamespace.${ privateName } === 'undefined' ||
53
+ !Object.isFrozen(globalNamespace.${ privateName } )
54
+ ) {
52
55
globalNamespace.${ privateName } = config;
53
56
}
54
57
You can’t perform that action at this time.
0 commit comments