Skip to content

Commit

Permalink
fix: ensure Electron.Utility property exists
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
devm33 committed Oct 19, 2023
1 parent 7a1aef3 commit cf5a7e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/primary-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ export const generatePrimaryInterfaces = (
}
});

constDeclarations.push('const Utility: {};');

addToOutput([...MainInterfaceForRemote, '}']);

for (const interfaceKey of interfaceKeys) {
Expand Down

0 comments on commit cf5a7e8

Please sign in to comment.