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:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user