1 // Returns true if the extension is running on a Mac
2 function webdeveloper_isMac()
4 var appInfo
= Components
.classes
["@mozilla.org/xre/app-info;1"];
9 // If the OS is set to Darwin
10 if(appInfo
.getService(Components
.interfaces
.nsIXULRuntime
).OS
== "Darwin")
15 else if(!webdeveloper_isPreferenceSet("general.platform.override") && navigator
.platform
.indexOf("Mac") == 0)