diff --git a/js/script.js b/js/script.js index b5f8117..797e69b 100644 --- a/js/script.js +++ b/js/script.js @@ -291,12 +291,13 @@ $(document).ready(function () { }) function makeFullscreen(b) { - currentWindow.setAlwaysOnTop(b) - currentWindow.setFullScreen(b) - if (b) { currentWindow.maximize() + currentWindow.setAlwaysOnTop(b) + currentWindow.setFullScreen(b) } else { + currentWindow.setAlwaysOnTop(b) + currentWindow.setFullScreen(b) currentWindow.unmaximize() } } \ No newline at end of file