How to get the active window name in Javascript?

Shell.WindowTracker.get_default().focus_app.id

is a bit more convenient.

2 Likes