On 02/02/2016 12:36, Philip Chee wrote:
On 01/02/2016 18:17, Philipp Kewisch wrote:
You can use runtime checks for the OS, e.g. using Services.appinfo
Philipp
Dude, he's talking about XUL, not JS. Please stop giving useless advice.
It's perfectly possible to runtime-change the DOM tree as needed from
JS, either using DOM methods or using overlays and loadOverlay().
Firefox now uses AppConstants.jsm (e.g. `if (AppConstants.platform ==
"macosx")` in many places to do things we used to do with ifdefs. That
sometimes includes migrating the ifdefs out of the XUL and making
behavioural changes at runtime instead.
Please be respectful of other people's efforts to answer questions -
especially when the question is very tersely formulated and it is not
entirely clear what the scope of the question or possible solutions is.
~ Gijs
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform