Skip to content

Commit

Permalink
fix: provide no-op implementation of app.setUserModelId (#28915)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Apr 29, 2021
1 parent c37c9ad commit 791eddd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/browser/api/app.ts
Expand Up @@ -63,6 +63,9 @@ Object.defineProperty(app, 'applicationMenu', {
return execFile !== 'electron';
})();

// The native implementation is not provided on non-windows platforms
app.setAppUserModelId = app.setAppUserModelId || (() => {});

app._setDefaultAppPaths = (packagePath) => {
// Set the user path according to application's name.
app.setPath('userData', path.join(app.getPath('appData'), app.name!));
Expand Down

0 comments on commit 791eddd

Please sign in to comment.