^^ Can likely also lean on `N/runtime.executionCon...
# suitescript
e
^^ Can likely also lean on
N/runtime.executionContext
s
Thanks Eric, yes partially, though it seems UserEvents are stil invoked in the user_interface context so that alone can't distinguish a client script from a UE. I am actually going with
typeof console === 'object'
as a presumably safe bet?
e
Theoretically that should work as long as nobody else in the environment is doing something stupid like exporting globals