Skip to content

platform

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/phet-core/blob/main/js/platform.ts for the most up-to-date information.

Overview

Code for testing which platform is running. Use sparingly, if at all!

Sample usage: if (platform.firefox) {node.renderer = 'canvas';}

@author Jonathan Olson (PhET Interactive Simulations) @author Sam Reid (PhET Interactive Simulations) /* globals navigator phet self */

Source Code

See the source for platform.ts in the phet-core repository.