From 4cf5f2b12ce9034f28b77c06b884f2c0440efc1c Mon Sep 17 00:00:00 2001 From: Wikinaut Date: Thu, 16 Aug 2012 01:00:36 +0200 Subject: [PATCH] fix for all IE8 issues when IE8 setting NATIVE XMLHHTP SUPPORT is disabled --- src/node/hooks/express/socketio.js | 2 +- src/static/js/pad.js | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/node/hooks/express/socketio.js b/src/node/hooks/express/socketio.js index 132283a7..899eb985 100644 --- a/src/node/hooks/express/socketio.js +++ b/src/node/hooks/express/socketio.js @@ -29,7 +29,7 @@ exports.expressCreateServer = function (hook_name, args, cb) { //this is only a workaround to ensure it works with all browers behind a proxy //we should remove this when the new socket.io version is more stable - io.set('transports', ['xhr-polling']); + io.set('transports', ['htmlfile','xhr-polling']); var socketIOLogger = log4js.getLogger("socket.io"); io.set('logger', { diff --git a/src/static/js/pad.js b/src/static/js/pad.js index df6342e2..d1280694 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -183,12 +183,6 @@ function savePassword() document.location=document.location; } -function ieTestXMLHTTP(){ - // Test for IE known XML HTTP issue - if ($.browser.msie && !window.XMLHttpRequest){ - $("#editorloadingbox").html("You do not have XML HTTP enabled in your browser. Fix this issue"); - } -} function handshake() { var loc = document.location; @@ -439,8 +433,6 @@ var pad = { $(document).ready(function() { - // test for XML HTTP capabiites - ieTestXMLHTTP(); // start the custom js if (typeof customStart == "function") customStart(); getParams();