git ssb

1+

Daan Patchwork / patchwork



Tree: bfad9d94f6fd6b6ee044e8305e9ce1f7bc1dc32b

Files: bfad9d94f6fd6b6ee044e8305e9ce1f7bc1dc32b / lib / fullscreen.js

368 bytesRaw
1const electron = require('electron')
2const { Value } = require('mutant')
3
4module.exports = function () {
5 const win = electron.remote.getCurrentWindow()
6 const isFullScreen = Value(win.isFullScreen())
7 win.on('enter-full-screen', () => {
8 isFullScreen.set(true)
9 })
10 win.on('leave-full-screen', () => {
11 isFullScreen.set(false)
12 })
13 return isFullScreen
14}
15

Built with git-ssb-web