Revision 3103
Added by perry about 18 years ago
lib/spatial/mapbuilder/lib/Mapbuilder.js | ||
---|---|---|
124 | 124 |
if (typeof XSLTProcessor != "undefined") { |
125 | 125 |
var UA = navigator.userAgent; |
126 | 126 |
var AV = navigator.appVersion; |
127 |
|
|
128 |
// KHTML browsers should be detected by the typeof comparison |
|
129 |
//khtml = ((AV.indexOf("Konqueror") >= 0)||(AV.indexOf("Safari") >= 0)) ? true : false; |
|
130 |
|
|
131 |
// Opera slips through the cracks |
|
127 | 132 |
opera = UA.indexOf("Opera") == -1 ? false : true; |
128 |
//khtml = ((AV.indexOf("Konqueror") >= 0)||(AV.indexOf("Safari") >= 0)) ? true : false; |
|
129 |
if (opera || khtml) {
|
|
133 |
|
|
134 |
if (opera) { |
|
130 | 135 |
window.location = baseDir+"/util/noxslt.html"; |
131 | 136 |
} |
132 | 137 |
} else { |
Also available in: Unified diff
minor changes to khtml detection stategy