From 936f2f9cef26cbbf687ec68e833a9620dffb6894 Mon Sep 17 00:00:00 2001 From: HighImKevin Date: Wed, 28 Jan 2026 17:43:19 -0500 Subject: [PATCH] Update onViewPage helper function to properly send the current view --- scripts/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index 4b19d40..f048786 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -34,9 +34,11 @@ ERR('Error in original onViewShow handler:', err); } } + + const view = getCurrentView() ?? args[0]; // Call our registered handlers - notifyHandlers(args[0], args[1], window.location.hash); + notifyHandlers(view, args[1], window.location.hash); }; LOG('Hooked into Emby.Page.onViewShow');