Check environment in typescript file #6830
elenaaralla
started this conversation in
General
Replies: 1 comment
-
it's not a serenity question but a typescript question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I've added a script in Modules\Membership\Account\Login\LoginPage.ts that fill in username and password via jquery and submit the login form, to skip the login in developement.
How can I check in TS files what is the environment, so that this script runs only when the application in in DEBUG mode?
Something similar to c#
#IF DEBUG
#ENDIF
Thank you,
Elena.
Beta Was this translation helpful? Give feedback.
All reactions