This repository is based on this article.
It shows you how to always track the active window with the help of some native code in Electron.
Follow along with the blog post to understand it, here's a working demo where we've put together every piece for you.