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({
5959 const config = (globalNamespace.${ privateName } || configValue);
6060
6161 // 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+ ) {
6366 globalNamespace.${ privateName } = config;
6467 }
6568 ` ;
Original file line number Diff line number Diff line change @@ -48,7 +48,10 @@ const loader = function AppConfigLoader(this: Loader) {
4848 const config = (globalNamespace.${ privateName } || configValue);
4949
5050 // 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+ ) {
5255 globalNamespace.${ privateName } = config;
5356 }
5457
You can’t perform that action at this time.
0 commit comments