While this might be very easy to code,I was wondering if there’s anything built-in like if (this.app.isFocused) ?
Working with app and overlaying html/css ui
While this might be very easy to code,I was wondering if there’s anything built-in like if (this.app.isFocused) ?
Working with app and overlaying html/css ui
I’m not sure what you mean by “app having focus”, maybe this:
setInterval(() => {
const ret = document.hasFocus();
console.log("hasFocus", ret);
}, 1000);
?
Thank you guys