MDL-54953 mod_chat: remove Safari hack

This hack was introduced in MDL-16878 and is not needed in modern Safari versions
but it was reported that it can breaks chat in IE
This commit is contained in:
Marina Glancy
2016-06-22 12:21:40 +08:00
parent 49619ce243
commit d74d4f4aab
2 changed files with 0 additions and 16 deletions
-8
View File
@@ -116,14 +116,6 @@ ob_start();
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript">
//<![CDATA[
function safari_refresh() {
self.location.href= '<?php echo $refreshurl;?>';
}
var issafari = false;
if (window.devicePixelRatio) {
issafari = true;
setTimeout('safari_refresh()', <?php echo $CFG->chat_refresh_room * 1000;?>);
}
if (parent.msg && parent.msg.document.getElementById("msgStarted") == null) {
parent.msg.document.close();
parent.msg.document.open("text/html","replace");
-8
View File
@@ -106,14 +106,6 @@ $refreshurl = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdated.php?".
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript">
//<![CDATA[
function safari_refresh() {
self.location.href= '<?php echo $refreshurl;?>';
}
var issafari = false;
if(window.devicePixelRatio){
issafari = true;
setTimeout('safari_refresh()', <?php echo $CFG->chat_refresh_room * 1000;?>);
}
if (parent.msg.document.getElementById("msgStarted") == null) {
parent.msg.document.close();
parent.msg.document.open("text/html","replace");