Fixed typo #57

This commit is contained in:
ManeraKai 2022-02-26 23:45:52 +03:00
parent fba94d845e
commit e26942a9bd
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 5 additions and 5 deletions

View File

@ -124,7 +124,7 @@
<option value="piped">Piped</option>
<option value="invidious">Invidious</option>
<option value="freetube">FreeTube</option>
<option value="yatte">Yatte</option>
<option value="yatte">Yattee</option>
</select>
</div>

View File

@ -6,7 +6,7 @@ let youtubeFrontendElement = document.getElementById("youtube-frontend");
let invidiousDivElement = document.getElementById("invidious");
let pipedDivElement = document.getElementById("piped");
let invidiousPipedDivElement = document.getElementById("invidious-piped");
let freetubeYatteDivElement = document.getElementById("freetube-yatte");
let freetubeYatteeDivElement = document.getElementById("freetube-yatte");
@ -16,19 +16,19 @@ function changeFrontendsSettings(frontend) {
invidiousPipedDivElement.style.display = 'block'
pipedDivElement.style.display = 'block';
invidiousDivElement.style.display = 'none';
freetubeYatteDivElement.style.display = 'none';
freetubeYatteeDivElement.style.display = 'none';
}
else if (frontend == 'invidious') {
invidiousPipedDivElement.style.display = 'block'
pipedDivElement.style.display = 'none';
invidiousDivElement.style.display = 'block';
freetubeYatteDivElement.style.display = 'none';
freetubeYatteeDivElement.style.display = 'none';
}
else if (frontend == 'freetube' || frontend == 'yatte') {
invidiousPipedDivElement.style.display = 'none'
pipedDivElement.style.display = 'none';
invidiousDivElement.style.display = 'none';
freetubeYatteDivElement.style.display = 'block';
freetubeYatteeDivElement.style.display = 'block';
changeYoutubeEmbedFrontendsSettings(youtubeHelper.getYoutubeEmbedFrontend());
}
}