mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Hiding chromecast button from browsers that isnt chrome(ium)
This commit is contained in:
2
public/dist/embed.min.js
vendored
2
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
2
public/dist/main.min.js
vendored
2
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -255,7 +255,9 @@ function init(){
|
||||
$("#embed-button").css("display", "inline-block");
|
||||
$("#embed-area").val(embed_code(embed_autoplay, embed_width, embed_height, color));
|
||||
$("#search").attr("placeholder", "Find song on YouTube...");
|
||||
|
||||
if(!/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())){
|
||||
$(".castButton").css("display", "none");
|
||||
}
|
||||
if(chromecastAvailable){
|
||||
hide_native(1);
|
||||
} else if(chromecastReady) {
|
||||
|
||||
Reference in New Issue
Block a user