summaryrefslogtreecommitdiff
path: root/share/www/script/test/changes.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script/test/changes.js')
-rw-r--r--share/www/script/test/changes.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/www/script/test/changes.js b/share/www/script/test/changes.js
index f348aed8..bf4a1617 100644
--- a/share/www/script/test/changes.js
+++ b/share/www/script/test/changes.js
@@ -57,7 +57,12 @@ couchTests.changes = function(debug) {
}
// poor man's browser detection
- var is_safari = navigator.userAgent.match(/AppleWebKit/);
+ var is_safari = false;
+ if(typeof(navigator) == "undefined") {
+ is_safari = true; // For CouchHTTP based runners
+ } else if(navigator.userAgent.match(/AppleWebKit/)) {
+ is_safari = true;
+ };
if (!is_safari && xhr) {
// Only test the continuous stuff if we have a real XHR object
// with real async support.