Skip to content

Commit

Permalink
allow the navigator objct to be MIA when determining if envjs is in e…
Browse files Browse the repository at this point in the history
…ffect or not
  • Loading branch information
client9 committed Apr 18, 2010
1 parent a4edebf commit 8de6110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/helpers.js
@@ -1,5 +1,5 @@
// helpers available to all tests

function runningUnderEnvjs(){
return navigator.userAgent.search( /Envjs/ ) > -1;
return (typeof navigator === 'object') && navigator.userAgent.search( /Envjs/ ) > -1;
}

0 comments on commit 8de6110

Please sign in to comment.