<@UM202703E> With the `'N/runtime'` module, check ...
# suitescript
a
@Tyler With the
'N/runtime'
module, check
runtime.ContextType
t
So when I check the runtime.ContextType, it's giving me an object of a bunch of different settings. I can see the USER_INTERFACE: "USERINTERFACE" key/value, but is this something that only shows when the context is actually the UI?
Nevermind - I was able to use the runtime.executionContext to check if it's user interface
a
runtime.ContextType
Is the enum you should be checking against something like:
if (runtime.executionContext === runtime.ContextType.USER_INTERFACE) {}
👍 1