diff --git a/src/main/views/loadingScreen.ts b/src/main/views/loadingScreen.ts index 1c152fe2..9ecf68f2 100644 --- a/src/main/views/loadingScreen.ts +++ b/src/main/views/loadingScreen.ts @@ -73,7 +73,16 @@ export class LoadingScreen { }; private create = () => { - this.view = new WebContentsView({webPreferences: {preload: getLocalPreload('internalAPI.js')}}); + this.view = new WebContentsView({ + webPreferences: { + preload: getLocalPreload('internalAPI.js'), + + // For some reason this is required to make the background transparent + // for the loading screen, even though the docs say it's the default. + // See: https://www.electronjs.org/docs/latest/api/structures/web-preferences + transparent: true, + }}, + ); performanceMonitor.registerView('LoadingScreen', this.view.webContents); this.view.webContents.loadURL('mattermost-desktop://renderer/loadingScreen.html'); };