Automatically assuming small player if in iframe

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-22 16:45:44 +02:00
parent 25c7f85203
commit 297cc10691
3 changed files with 15 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
var Channel = {
init: function() {
if(window.location.hash == "#small") {
if(window.location.hash == "#small" || inIframe()) {
small_player = true;
document.querySelector("footer").style.display = "none";
}