mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Don't hide the popup on video change
also hide the info button if the popup was open when setting up buttons
This commit is contained in:
@@ -438,9 +438,6 @@ async function videoIDChange(id: string): Promise<void> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//close popup
|
|
||||||
closeInfoMenu();
|
|
||||||
|
|
||||||
sponsorsLookup();
|
sponsorsLookup();
|
||||||
|
|
||||||
// Make sure all player buttons are properly added
|
// Make sure all player buttons are properly added
|
||||||
@@ -1812,7 +1809,8 @@ async function updateVisibilityOfPlayerControlsButton(): Promise<void> {
|
|||||||
updateEditButtonsOnPlayer();
|
updateEditButtonsOnPlayer();
|
||||||
|
|
||||||
// Don't show the info button on embeds
|
// Don't show the info button on embeds
|
||||||
if (Config.config.hideInfoButtonPlayerControls || document.URL.includes("/embed/") || onInvidious) {
|
if (Config.config.hideInfoButtonPlayerControls || document.URL.includes("/embed/") || onInvidious
|
||||||
|
|| document.getElementById("sponsorBlockPopupContainer") != null) {
|
||||||
playerButtons.info.button.style.display = "none";
|
playerButtons.info.button.style.display = "none";
|
||||||
} else {
|
} else {
|
||||||
playerButtons.info.button.style.removeProperty("display");
|
playerButtons.info.button.style.removeProperty("display");
|
||||||
|
|||||||
Reference in New Issue
Block a user