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