Update browserWindows.ts

This commit is contained in:
theolivenbaum
2021-09-10 10:12:56 +02:00
committed by GitHub
parent 67ea8c768e
commit 124d24a19c

View File

@@ -389,7 +389,11 @@ export = (socket: Socket, app: Electron.App) => {
socket.on('browserWindowSetFullScreen', (id, fullscreen) => {
getWindowById(id)?.setFullScreen(fullscreen);
});
socket.on('browserWindowSetBackgroundColor', (id, color) => {
getWindowById(id)?.setBackgroundColor(color);
});
socket.on('browserWindowIsFullScreen', (id) => {
const isFullScreen = getWindowById(id)?.isFullScreen() ?? null;