Modernise code
This mr mainly modernises JavaScript code blocks. It removes some old checks whether applicationWindow exists. I also managed to shorten long ternary statements with optional chaining.
This mr mainly modernises JavaScript code blocks. It removes some old checks whether applicationWindow exists. I also managed to shorten long ternary statements with optional chaining.