2022-11-28 18:36:52 +08:00
|
|
|
// import { remote } from 'electron'
|
|
|
|
|
|
|
|
// const setFullScreen = remote.getCurrentWindow().setFullScreen
|
|
|
|
// const isFullScreen = remote.getCurrentWindow().isFullScreen
|
|
|
|
// window.setFullScreen = setFullScreen
|
|
|
|
// window.isFullScreen = isFullScreen
|
2022-11-28 15:22:56 +08:00
|
|
|
|
2022-11-28 18:36:52 +08:00
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
|
|
// document.getElementById("fullscreen-button").onclick = function () {
|
|
|
|
// alert(1)
|
|
|
|
// window.setFullScreen(!window.isFullScreen)
|
|
|
|
// }
|
2022-11-28 15:22:56 +08:00
|
|
|
})
|