mheh no browser requirement at all

This commit is contained in:
John McLear 2014-11-25 18:18:42 +00:00
parent c2c0cb6907
commit 2a062f8dc3
1 changed files with 2 additions and 2 deletions

View File

@ -234,8 +234,8 @@ exports.doImport = function(req, res, padId)
ERR(err);
//close the connection
// res.send("<head><script type='text/javascript' src='../../static/js/jquery.js'></script><script type='text/javascript' src='../../static/js/browser.js'></script></head><script>$(window).load(function(){if ( (!browser.msie) && (!(browser.mozilla && browser.version.indexOf(\"1.8.\") == 0)) ){document.domain = document.domain;}var impexp = window.parent.padimpexp.handleFrameCall('" + status + "');})</script>", 200);
res.send("<head><script type='text/javascript' src='../../static/js/jquery.js'></script><script type='text/javascript' src='../../static/js/browser.js'></script></head><script>$(window).load(function(){document.domain = document.domain;var impexp = window.parent.padimpexp.handleFrameCall('" + status + "');})</script>", 200);
res.send("<head><script type='text/javascript' src='../../static/js/jquery.js'></script></head><script>$(window).load(function(){ if(navigator.userAgent.indexOf('MSIE') === -1){ document.domain = document.domain; } var impexp = window.parent.padimpexp.handleFrameCall('" + status + "'); })</script>", 200);
});
}