mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Fixed remote issue
This commit is contained in:
		@@ -32,11 +32,8 @@ window.addEventListener(
 | 
			
		||||
    M.Modal.init(document.getElementById("about"));
 | 
			
		||||
    M.Modal.init(document.getElementById("contact"));
 | 
			
		||||
    M.Modal.init(document.getElementById("help"));
 | 
			
		||||
 | 
			
		||||
    if (window.location.hostname == "remote.zoff.me") add = "https://zoff.me";
 | 
			
		||||
    else add = "localhost";
 | 
			
		||||
    socket = io.connect(
 | 
			
		||||
      add,
 | 
			
		||||
      window.location.protocol + "//" + window.location.host,
 | 
			
		||||
      connection_options
 | 
			
		||||
    );
 | 
			
		||||
    socket.on("update_required", function() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user