Skip to content

Commit cf5a7e8

Browse files
committed
fix: ensure Electron.Utility property exists
Added in electron#246, the Utility namespace currently has no concrete values in it on electron/electron@main. This change ensures Electron.Utility is available as a property even when the namespace has no values.
1 parent 7a1aef3 commit cf5a7e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/primary-interfaces.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ export const generatePrimaryInterfaces = (
118118
}
119119
});
120120

121+
constDeclarations.push('const Utility: {};');
122+
121123
addToOutput([...MainInterfaceForRemote, '}']);
122124

123125
for (const interfaceKey of interfaceKeys) {

0 commit comments

Comments
 (0)