Update browserWindows.js

This commit is contained in:
theolivenbaum
2021-09-10 10:13:23 +02:00
committed by GitHub
parent 124d24a19c
commit 836eebf256

View File

@@ -343,6 +343,9 @@ module.exports = (socket, 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;
electronSocket.emit('browserWindow-isFullScreen-completed' + id, isFullScreen);
@@ -653,4 +656,4 @@ module.exports = (socket, app) => {
return null;
}
};
//# sourceMappingURL=browserWindows.js.map
//# sourceMappingURL=browserWindows.js.map