apply suggestion change

This commit is contained in:
grafixeyehero 2019-11-29 19:43:37 +03:00
parent 06b42973f4
commit 0821d0ad9e

View File

@ -20,13 +20,13 @@ define(["events", "playbackManager", "pluginManager", "inputManager", "connectio
}
});
function getScreensaverPlugin() {
function getScreensaverPlugin(isLoggedIn) {
var option;
try {
option = userSettings.get("screensaver", false);
} catch (err) {
option = null;
option = isLoggedIn ? "backdropscreensaver" : "logoscreensaver";
}
var plugins = pluginManager.ofType("screensaver");