git ssb

1+

Daan Patchwork / patchwork



Tree: 4087ed91f7e663172d051c9afe142fa7b7669f1e

Files: 4087ed91f7e663172d051c9afe142fa7b7669f1e / lib / fullscreen.js

395 bytesRaw
1const electron = require('electron')
2const { Value } = require('mutant')
3
4module.exports = function () {
5 const isFullScreen = Value(false)
6 // receive the OS window state from the main process
7 electron.ipcRenderer.on('enter-full-screen', () => {
8 isFullScreen.set(true)
9 })
10 electron.ipcRenderer.on('leave-full-screen', () => {
11 isFullScreen.set(false)
12 })
13 return isFullScreen
14}
15

Built with git-ssb-web