Ensure `isFocused` always returns boolean

pull/1/head
Daniel Gasienica 7 years ago
parent e289479c6b
commit cb464c6301

@ -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…
Cancel
Save