Skip to content

Commit

Permalink
fix browser game overlay title
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettCleary committed Oct 26, 2023
1 parent 68894b9 commit 880c04f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/backend/storeManagers/storeManagerCommon/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { access, chmod } from 'fs/promises'
import shlex from 'shlex'
import { showDialogBoxModalAuto } from '../../dialog/dialog'
import { createAbortController } from '../../utils/aborthandler/aborthandler'
import { app, BrowserWindow, ipcMain } from 'electron'
import { app, BrowserWindow } from 'electron'
import { gameManagerMap } from '../index'
const buildDir = resolve(__dirname, '../../build')
import { hrtime } from 'process'
Expand Down Expand Up @@ -187,8 +187,12 @@ const openNewBrowserGameWindow = async (
* after init() has been called on it. This can be some time after
* window launch, so we send an overlay ready event when it's ready.
*/
ipcMain.once('overlayReady', () => {
initOverlayRenderState(browserGame.webContents.id, renderState)
browserGame.webContents.ipc.once('overlayReady', () => {
initOverlayRenderState(
browserGame.webContents.id,
renderState,
'HyperPlay Web Game'
)
})

setTimeout(() => browserGame.focus(), 200)
Expand Down

0 comments on commit 880c04f

Please sign in to comment.