runOnWeb

inline fun <T> runOnWeb(action: () -> T?): T?

Executes action if the currentPlatform is ApplicationType.WebGL. Returns action result or null. Not that the action will not be executed in an Applet - use runOnApplet instead.

See also