Make buttons not appear on invidious

This commit is contained in:
Ajay Ramachandran
2021-05-16 20:45:16 -04:00
parent 18d10ada5e
commit ecfcb0b846

View File

@@ -1123,9 +1123,9 @@ async function updateVisibilityOfPlayerControlsButton(): Promise<void> {
/** Updates the visibility of buttons on the player related to creating segments. */ /** Updates the visibility of buttons on the player related to creating segments. */
function updateEditButtonsOnPlayer(): void { function updateEditButtonsOnPlayer(): void {
// Don't try to update the buttons if we aren't on a YouTube video page // Don't try to update the buttons if we aren't on a YouTube video page
if (!sponsorVideoID || onInvidious) return; if (!sponsorVideoID) return;
const buttonsEnabled = !Config.config.hideVideoPlayerControls; const buttonsEnabled = !Config.config.hideVideoPlayerControls && !onInvidious;
let creatingSegment = false; let creatingSegment = false;
let submitButtonVisible = false; let submitButtonVisible = false;