Ensure isFocused
always returns boolean
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
})();
|
||||
|
Reference in New Issue
Block a user