Is there a way to determine if the app is running in Ionic Lab?

My first thought was to use ionic.Platform.platform(), but in Ionic Lab, this returns ‘ios’ and ‘android’ respectively.

I need to handle authentication when not on a native device. Currently I can do it using ionic.Platform.platform() on localhost:8100, but I really enjoy and prefer to develop in Ionic Lab.

Simplest way is probably be to check if window.cordova is defined - it won’t be if running in ionic serve.