diff --git a/src/platform/rhino.js b/src/platform/rhino.js index a603c7df..7fb383e9 100644 --- a/src/platform/rhino.js +++ b/src/platform/rhino.js @@ -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 diff --git a/src/window/navigator.js b/src/window/navigator.js index 14587c66..3ea78718 100644 --- a/src/window/navigator.js +++ b/src/window/navigator.js @@ -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(){