Commit 72fc734c authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

More cross-browser stuff; fixes for IE.

parent 9c5bb2c4
......@@ -7,6 +7,13 @@
* Some utility stuff.
*/
var user_agent = navigator.userAgent.toLowerCase();
var is_safari = false;
if (user_agent.indexOf("safari") != -1) {
is_safari = true;
}
/* Clear the various 'loading' indicators. */
function ClearLoadingIndicators(done_msg)
{
......@@ -34,7 +41,7 @@ function IframeDocument(id)
var oIframe = getObjbyName(id);
var oDoc = (oIframe.contentWindow || oIframe.contentDocument);
if (oIframe.document) {
if (oIframe.document && is_safari) {
// Safari
return oIframe.document;
}
......
......@@ -93,7 +93,7 @@ function ml_getBodyText(ifr) {
try {
var oDoc;
if (ifr.document) {
if (ifr.document && is_safari) {
// Safari
oDoc = ifr.document;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment