[Sugar-devel] browser detection

James Cameron quozl at laptop.org
Mon May 22 02:06:15 EDT 2017

There's no way to detect an XO reliably.  Best is to check for a feature
or facility needed by the content.

However, it is practical to detect Browse in Sugar, which can be a
proxy for detecting an XO when combined with other methods; code the
JavaScript to look for the string SugarLabs in the userAgent property
of the navigator object.

You'll find SugarLabs in the Browse source, in plain text.

James Cameron

More information about the Sugar-devel mailing list