--- loncom/html/adm/jsMath/jsMath-global.html 2006/05/17 22:23:19 1.1
+++ loncom/html/adm/jsMath/jsMath-global.html 2007/10/09 21:29:16 1.2
@@ -359,7 +359,7 @@ var jsMath = {
this.domain = '';
// MSIE/Mac can't do domain changes, so don't bother trying
if (navigator.appName == 'Microsoft Internet Explorer' &&
- navigator.platform == 'MacPPC' && navigator.userProfile != null) return;
+ !navigator.platform.match(/Mac/) && navigator.userProfile != null) return;
if (this.src == '') {
if (window == parent) return;
var oldDomain = document.domain;
@@ -372,7 +372,7 @@ var jsMath = {
} catch (err) {}
document.domain = oldDomain;
} else {
- if (!this.src.match(/^[^:]+:\/\/([^/]+)(:[0-9]+)?\//)) return;
+ if (!this.src.match(new RegExp('^[^:]+:\/\/([^/]+)(:[0-9]+)?\/'))) return;
if (document.domain == RegExp.$1) return;
var src = RegExp.$1.split(/\./);
var loc = String(window.location.host).split(/\./);