From 8cc88fb08c7ef3b4fb3874eb8e2d7346b4c10445 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 13 Feb 2025 15:59:57 -0500 Subject: [PATCH] Remove DashboardPage global --- .eslintrc.js | 1 - src/apps/dashboard/controllers/dashboard.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index cb8df6623d..3051ae4f77 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -246,7 +246,6 @@ module.exports = { 'ApiClient': 'writable', 'Events': 'writable', 'chrome': 'writable', - 'DashboardPage': 'writable', 'Emby': 'readonly', 'Hls': 'writable', 'LibraryMenu': 'writable', diff --git a/src/apps/dashboard/controllers/dashboard.js b/src/apps/dashboard/controllers/dashboard.js index 1ffa88be60..119fe8e670 100644 --- a/src/apps/dashboard/controllers/dashboard.js +++ b/src/apps/dashboard/controllers/dashboard.js @@ -394,7 +394,7 @@ function renderRunningTasks(view, tasks) { view.querySelector('#divRunningTasks').innerHTML = html; } -window.DashboardPage = { +const DashboardPage = { startInterval: function (apiClient) { apiClient.sendMessage('SessionsStart', '0,1500'); apiClient.sendMessage('ScheduledTasksInfoStart', '0,1000'); @@ -741,6 +741,7 @@ window.DashboardPage = { }); } }; + export default function (view) { function onRestartRequired(evt, apiClient) { console.debug('onRestartRequired not implemented', evt, apiClient);