mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Fixed crashing
This commit is contained in:
		| @@ -43,7 +43,9 @@ function hide_native(way) { | ||||
|             $('.castButton').addClass('castButton-white-active'); | ||||
|         } | ||||
|         if(!Helper.mobilecheck()) { | ||||
|             $('.castButton').tooltip('destroy'); | ||||
|             if(M.Tooltip.getInstance($(".castButton"))) { | ||||
|                 $('.castButton').tooltip('destroy'); | ||||
|             } | ||||
|             $('.castButton').tooltip({ | ||||
|                 delay: 5, | ||||
|                 position: "top", | ||||
| @@ -89,7 +91,9 @@ function hide_native(way) { | ||||
|         $("#player_overlay_text").toggleClass("hide"); | ||||
|     } else if(way == 0){ | ||||
|         if(!Helper.mobilecheck()) { | ||||
|             $('.castButton').tooltip('destroy'); | ||||
|             if(M.Tooltip.getInstance($(".castButton"))) { | ||||
|                 $('.castButton').tooltip('destroy'); | ||||
|             } | ||||
|             $('.castButton').tooltip({ | ||||
|                 delay: 5, | ||||
|                 position: "top", | ||||
| @@ -517,7 +521,9 @@ function change_offline(enabled, already_offline){ | ||||
|     ga('send', 'event', "button-click", "offline", "", offline ? 1 : 0); | ||||
|     socket.emit("offline", {status: enabled, channel: chan != undefined ? chan.toLowerCase() : ""}); | ||||
|     if(!Helper.mobilecheck()) { | ||||
|         $("#offline-mode").tooltip('destroy'); | ||||
|         if($("#offline-mode").length == 1 && M.Tooltip.getInstance($("#offline-mode"))) { | ||||
|             $("#offline-mode").tooltip('destroy'); | ||||
|         } | ||||
|     } | ||||
|     if(enabled){ | ||||
|         if(list_html){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user