Permalink
Browse files

Fixes issue #4, isRhino() evaluates to true in Firefox 15.0.1

  • Loading branch information...
1 parent 5b17eb5 commit ca4883811243d3a3234e06a891ad8125d2669dcd @jbeard4 committed Sep 11, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/platform.js
View
@@ -30,12 +30,12 @@ function isBrowser(){
var platform;
-if(isRhino()){
- module.exports = require('./rhino/platform');
+if(isBrowser()){
+ module.exports = require('./browser/platform');
}else if(isNode()){
module.exports = require('./node/platform');
-}else if(isBrowser()){
- module.exports = require('./browser/platform');
+}else if(isRhino()){
+ module.exports = require('./rhino/platform');
}else{
module.exports = require('./embedded/platform');
}

0 comments on commit ca48838

Please sign in to comment.