const{remote,ipcRenderer}=require('electron');function closeWindow(){ipcRenderer.send('close-main-window');}
ipcRenderer.on('fullscreen',()=>{hideDecoration();fullscreen();titleBarAutoHide(true);});ipcRenderer.on('killfullscreen',()=>{titleBarAutoHide(false);});ipcRenderer.on('showDecoration',()=>{showDecoration();});ipcRenderer.on('hideDecoration',()=>{hideDecoration();});
