Prevented upload button from appearing on invidious.

It still appears if the video player controls are disabled.
This commit is contained in:
Ajay Ramachandran 2019-12-19 00:38:55 -05:00
parent 630b099fd6
commit 45a64fcb03

View file

@ -756,6 +756,9 @@ function getControls() {
//adds all the player controls buttons
async function createButtons() {
// Don't add controls on Invidious yet
if (onInvidious) return;
let result = await wait(getControls).catch();
//set global controls variable