mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Changing qr-code and join link when changing channel by remotecontroller
This commit is contained in:
		| @@ -47,7 +47,9 @@ var Hostcontroller = { | ||||
|  | ||||
|                 chan = arr.value.toLowerCase(); | ||||
|                 Helper.setHtml("#chan", Helper.upperFirst(chan)); | ||||
|  | ||||
|                 var shareCodeUrl = window.location.protocol + "//client."+window.location.hostname+"/r/"+btoa(encodeURIComponent(chan.toLowerCase())); | ||||
|                 document.getElementById("share-join-qr").setAttribute("src", "https://chart.googleapis.com/chart?chs=221x221&cht=qr&choe=UTF-8&chld=L|1&chl="+shareCodeUrl); | ||||
|                 Helper.setHtml("#channel-name-join", "client." + window.location.hostname + "/" + encodeURIComponent(chan.toLowerCase())); | ||||
|                 w_p = true; | ||||
|                 var add = ""; | ||||
|                 if(private_channel) add = Crypt.getCookie("_uI") + "_"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user