diff --git a/src/libraries/screensavermanager.js b/src/scripts/screensavermanager.js similarity index 94% rename from src/libraries/screensavermanager.js rename to src/scripts/screensavermanager.js index 607bf98fad..5f35a54b3e 100644 --- a/src/libraries/screensavermanager.js +++ b/src/scripts/screensavermanager.js @@ -1,8 +1,8 @@ import { Events } from 'jellyfin-apiclient'; import { playbackManager } from '../components/playback/playbackmanager'; import { pluginManager } from '../components/pluginManager'; -import inputManager from '../scripts/inputManager'; -import * as userSettings from '../scripts/settings/userSettings'; +import inputManager from './inputManager'; +import * as userSettings from './settings/userSettings'; import ServerConnections from '../components/ServerConnections'; import './screensavermanager.scss'; @@ -18,7 +18,7 @@ function getFunctionalEventIdleTime() { return new Date().getTime() - lastFunctionalEvent; } -Events.on(playbackManager, 'playbackstop', function (e, stopInfo) { +Events.on(playbackManager, 'playbackstop', function (_e, stopInfo) { const state = stopInfo.state; if (state.NowPlayingItem && state.NowPlayingItem.MediaType == 'Video') { lastFunctionalEvent = new Date().getTime(); diff --git a/src/libraries/screensavermanager.scss b/src/scripts/screensavermanager.scss similarity index 100% rename from src/libraries/screensavermanager.scss rename to src/scripts/screensavermanager.scss diff --git a/src/scripts/site.js b/src/scripts/site.js index 7b94f2b204..263fed80d2 100644 --- a/src/scripts/site.js +++ b/src/scripts/site.js @@ -26,7 +26,7 @@ import './routes'; import '../components/themeMediaPlayer'; import './autoBackdrops'; import { pageClassOn, serverAddress } from './clientUtils'; -import '../libraries/screensavermanager'; +import './screensavermanager'; import './serverNotifications'; import '../components/playback/playerSelectionMenu'; import '../legacy/domParserTextHtml'; @@ -39,7 +39,7 @@ import SyncPlayNoActivePlayer from '../components/syncPlay/ui/players/NoActivePl import SyncPlayHtmlVideoPlayer from '../components/syncPlay/ui/players/HtmlVideoPlayer'; import SyncPlayHtmlAudioPlayer from '../components/syncPlay/ui/players/HtmlAudioPlayer'; import { currentSettings } from './settings/userSettings'; -import taskButton from '../scripts/taskbutton'; +import taskButton from './taskbutton'; // TODO: Move this elsewhere window.getWindowLocationSearch = function(win) {