Skip to content

Commit

Permalink
fix: load correct messaging module in browser-only
Browse files Browse the repository at this point in the history
The frontend generator erroneously included the Electron messaging
module instead of the browser messaging module. Consequently, the
browser-only environment attempted to establish a WebSocket connection
to the backend. This issue has now been resolved.

Fixes #13820
  • Loading branch information
sdirix committed Jun 19, 2024
1 parent 63fb7e9 commit 39c23bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ${Array.from(frontendPreloadModules.values(), jsModulePath => `\
}
module.exports = (async () => {
const { messagingFrontendModule } = require('@theia/core/lib/${this.pck.isBrowser()
const { messagingFrontendModule } = require('@theia/core/lib/${this.pck.isBrowser() || this.pck.isBrowserOnly()
? 'browser/messaging/messaging-frontend-module'
: 'electron-browser/messaging/electron-messaging-frontend-module'}');
const container = new Container();
Expand Down

0 comments on commit 39c23bc

Please sign in to comment.