mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Ensure isFocused
always returns boolean
This commit is contained in:
parent
e289479c6b
commit
cb464c6301
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
(function () {
|
||||
'use strict';
|
||||
|
||||
var windowFocused;
|
||||
var windowFocused = false;
|
||||
window.addEventListener('blur', function() {
|
||||
windowFocused = false;
|
||||
});
|
||||
|
@ -12,5 +12,4 @@
|
|||
window.isFocused = function() {
|
||||
return windowFocused;
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue