Tip: Detect gadgets running in Linux

Thursday, August 21, 2008 at 10:18 AM



If you want to detect a Linux user, look for telltale signs such as stacks of O'Reilly books, an anti-MS worldview, and a stuffed penguin collection.

Or you can do this:
function isLinux() {
return framework.runtime.osName == 'Linux';
}
Have a tip you'd like to share? Send it to gd-developer AT google DOT com. To see all tips, choose the Tips label.

No comments: