mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
43a44793c5
Also removed all hints of previous linters
14 lines
298 B
JavaScript
14 lines
298 B
JavaScript
// eslint-disable-next-line func-names
|
|
(function() {
|
|
'use strict';
|
|
|
|
let windowFocused = false;
|
|
window.addEventListener('blur', () => {
|
|
windowFocused = false;
|
|
});
|
|
window.addEventListener('focus', () => {
|
|
windowFocused = true;
|
|
});
|
|
|
|
window.isFocused = () => windowFocused;
|
|
})();
|