Skip to content

Commit

Permalink
resolves #13
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcher committed Jan 20, 2009
1 parent 4f8f11b commit db09d09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/platform/rhino.js
Expand Up @@ -3,6 +3,10 @@
*/
var __env__ = {};
(function($env){

//You can emulate different user agents by overriding these after loading env
$env.appCodeName = "EnvJS";//eg "Mozilla"
$env.appName = "Resig/20070309 BirdDog/0.0.0.1";//eg "Gecko/20070309 Firefox/2.0.0.3"

//set this to true and see profile/profile.js to select which methods
//to profile
Expand Down
4 changes: 2 additions & 2 deletions src/window/navigator.js
Expand Up @@ -4,8 +4,8 @@
*/
$log("Initializing Window Navigator.");

var $appCodeName = "EnvJS";//eg "Mozilla"
var $appName = "Resig/20070309 BirdDog/0.0.0.1";//eg "Gecko/20070309 Firefox/2.0.0.3"
var $appCodeName = $env.appCodeName;//eg "Mozilla"
var $appName = $env.appName;//eg "Gecko/20070309 Firefox/2.0.0.3"

// Browser Navigator
$w.__defineGetter__("navigator", function(){
Expand Down

0 comments on commit db09d09

Please sign in to comment.