Is there a way to know in JS if we're at runtime or design time (editor/viewer)?

I'd love to be able to show a Tabs component's tabs when in design time (the editor) and hide them when in the viewer.

Is there a way to know this in JS?

Hi there! There may be a better way, but as a quick suggestion, you can parse the URL to grab either editor (in edit mode) or apps (in preview mode)!


1 Like

Awesome! Didn't know we had access to urlparams.href - that's great, thank you!

1 Like