diff --git a/resources/static/common/js/lib/winchan.js b/resources/static/common/js/lib/winchan.js index b31cd2263105de65cf3f27a70f82036295b7e51e..ee039892aee94588d8dcc5f34608baa769a727e9 100644 --- a/resources/static/common/js/lib/winchan.js +++ b/resources/static/common/js/lib/winchan.js @@ -236,7 +236,10 @@ // if window is unloaded and the client hasn't called cb, it's an error var onUnload = function() { - removeListener(isIE ? msgTarget : window, 'message', onDie); + try { + // IE8 doesn't like this... + removeListener(isIE ? msgTarget : window, 'message', onDie); + } catch (ohWell) { } if (cb) doPost({ a: 'error', d: 'client closed window' }); cb = undefined; // explicitly close the window, in case the client is trying to reload or nav