Merge pull request #1177 from dmitrylyzo/fix-backdropscreensaver

Fix backdrop screensaver: autoplay and hide
This commit is contained in:
dkanada 2020-05-05 22:48:02 +09:00 committed by GitHub
commit 8e9b0b2062
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
var _osdOpen = false; var _osdOpen = false;
// Use autoplay on Chromecast since it is non-interactive. // Use autoplay on Chromecast since it is non-interactive.
options.interactive = !browser.chromecast; if (browser.chromecast) options.interactive = false;
/** /**
* Creates the HTML markup for the dialog and the OSD. * Creates the HTML markup for the dialog and the OSD.
@ -609,7 +609,6 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
* Hides the slideshow element. * Hides the slideshow element.
*/ */
self.hide = function () { self.hide = function () {
var dialog = dialog;
if (dialog) { if (dialog) {
dialogHelper.close(dialog); dialogHelper.close(dialog);
} }