Skip to content

Commit 90e5200

Browse files
committed
Disable socket for IE untill 11
1 parent fc01175 commit 90e5200

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

nodejshelper/design/nodejshelpertheme/tpl/lhchat/getstatus/lhc_chat_after_cookie_multiinclude.tpl.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
<?php if (
2+
strpos($_SERVER['HTTP_USER_AGENT'],'MSIE 10.0') === false &&
3+
strpos($_SERVER['HTTP_USER_AGENT'],'MSIE 9.0') === false &&
4+
strpos($_SERVER['HTTP_USER_AGENT'],'MSIE 8.0') === false &&
5+
strpos($_SERVER['HTTP_USER_AGENT'],'MSIE 7.0') === false
6+
) : ?>
7+
18
lh_inst.nodejsHelperOptions = {
29
'hostname':'<?php echo erLhcoreClassModule::getExtensionInstance('erLhcoreClassExtensionNodejshelper')->getSettingVariable('hostname')?>',
310
'path':'<?php echo erLhcoreClassModule::getExtensionInstance('erLhcoreClassExtensionNodejshelper')->getSettingVariable('path')?>',
@@ -10,4 +17,5 @@
1017
snjs.setAttribute('async',true);
1118
snjs.setAttribute('type','text/javascript');
1219
snjs.setAttribute('src','<?php echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value?>//<?php echo $_SERVER['HTTP_HOST']?><?php echo erLhcoreClassDesign::designJS('js/nodejshelper.min.js');?>');
13-
thnjs.appendChild(snjs);
20+
thnjs.appendChild(snjs);
21+
<?php endif; ?>

0 commit comments

Comments
 (0)