From 4bda025480fd7d666c575ac9251bec3ae71c245e Mon Sep 17 00:00:00 2001 From: kasimi Date: Sun, 13 Dec 2015 14:43:24 +0100 Subject: [PATCH] Fix IE detection to make sound work again --- styles/prosilver/template/mchat_ajax_mini.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/styles/prosilver/template/mchat_ajax_mini.js b/styles/prosilver/template/mchat_ajax_mini.js index 38b7afa..d839fbf 100644 --- a/styles/prosilver/template/mchat_ajax_mini.js +++ b/styles/prosilver/template/mchat_ajax_mini.js @@ -92,6 +92,7 @@ $jQ(function(){ $jQ('#mChatUserList').show() } } + $jQ.browser = {msie: navigator.userAgent.match(/MSIE ([0-9]+)\./) || navigator.userAgent.match(/Trident\/7.0; rv 11.0/)}; }); var mChat={ key:function(e){ @@ -154,7 +155,7 @@ var mChat={ if ($jQ.cookie('mChatNoSound') == 'yes') { return } - if (false || $.browser.msie) { + if ($jQ.browser.msie) { $('#mChatSound').html(''); } else { $('#mChatSound').html('');