From 47666d9341d6902e59bc8a1fcbf58efba7c03989 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 14 Aug 2021 21:57:18 +0200 Subject: fullscreen_credits: Log when credit handling happens This allows us to confirm in the logs that we started handling credits. --- src/fullscreen_credits.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/fullscreen_credits.ts b/src/fullscreen_credits.ts index cb78551..247d31b 100644 --- a/src/fullscreen_credits.ts +++ b/src/fullscreen_credits.ts @@ -16,6 +16,7 @@ // along with Immersive. If not, see . import controls from './controls'; +import logger from './logger'; import wait_element from './wait_element'; @@ -30,6 +31,8 @@ function init_mutation_observer (player) { // The `postplay` class minimises the movie. Remove it if it gets // added to remain in full frame. if (player.classList.contains('watch-video--player-view-minimized')) { + logger.debug('fullscreen_credits', 'init_mutation_observer()', 'Maximising'); + player.classList.remove('watch-video--player-view-minimized'); // Resize the video to full frame. Otherwise it will shrink for -- cgit v1.2.3