--- loncom/html/adm/jsMath/jsMath-loader.html 2006/03/27 19:32:07 1.1
+++ loncom/html/adm/jsMath/jsMath-loader.html 2007/10/09 21:29:16 1.3
@@ -35,16 +35,17 @@ while (!window.jsMath && !showWarning) {
window.jsMath = window.parent.jsMath;
if (!window.jsMath) {throw "no jsMath";}
} catch (err) {
- showWarning = 1;
+ showWarning = 1; pageDomain = '';
+ try {pageDomain = document.domain} catch (err) {}
//
// MSIE on Mac can't change document.domain, and 'try' won't
- // catch the error (Grrr!) so don't even try for it
+ // catch the error (Grrr!) so don't even attempt it.
//
- if (document.domain.match(/\..*\./) &&
+ if (pageDomain.match(/\..*\./) &&
(navigator.appName != 'Microsoft Internet Explorer' ||
- navigator.platform != 'MacPPC' || !navigator.userProfile || !document.all)) {
+ !navigator.platform.match(/Mac/) || !navigator.userProfile || !document.all)) {
try {
- document.domain = document.domain.replace(/^[^.]*\./,'');
+ document.domain = pageDomain.replace(/^[^.]*\./,'');
showWarning = 0;
} catch(err) {}
}
@@ -59,21 +60,31 @@ function Warning () {
);
}
+isOmniWeb4 = (document.readyState == 'loading' &&
+ navigator.accentColorName != null &&
+ navigator.omniWebString == null);
+
if (showWarning) {setTimeout("Warning()",1)} else {
debug = window.parent.debug; show = window.parent.show;
jsMath.Script.window = window; url = jsMath.Script.url;
- document.write('