Skip to content

Commit

Permalink
Fullscreen using click method
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-gs committed Jul 27, 2023
1 parent 4f556f8 commit 462afbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/photoprism/slideshow/main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ object PhotoprismSlideshowApp extends cask.MainRoutes{
}
var noSleep = new NoSleep();
document.addEventListener('click', function enableNoSleepAndFullScreen() {
document.removeEventListener('click', enableNoSleep, false);
//document.removeEventListener('click', enableNoSleep, false);
noSleep.enable();
var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;
requestMethod.call(element);
Expand Down

0 comments on commit 462afbc

Please sign in to comment.