commit 50a50a67acfd4e91e9524d9f7ff4eb3ba21685fa parent 6ad69b3a13fa590796ec959e66cd6168c6a2e790 Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 30 Aug 2006 19:18:43 +0000 Stuff navigator.platform into Scholar.platform Diffstat:
| M | chrome/chromeFiles/content/scholar/xpcom/scholar.js | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/xpcom/scholar.js b/chrome/chromeFiles/content/scholar/xpcom/scholar.js @@ -38,6 +38,7 @@ var Scholar = new function(){ // Public properties this.version; + this.platform; /* * Initialize the extension @@ -68,6 +69,11 @@ var Scholar = new function(){ this.version = gExtensionManager.getItemForID(SCHOLAR_CONFIG['GUID']).version; + // OS platform + var win = Components.classes["@mozilla.org/appshell/appShellService;1"] + .getService(Components.interfaces.nsIAppShellService) + .hiddenDOMWindow; + this.platform = win.navigator.platform; // Load in the localization stringbundle for use by getString(name) var src = 'chrome://scholar/locale/scholar.properties';