Skip to content

platform

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.