Ensure isFocused always returns boolean

This commit is contained in:
Daniel Gasienica 2018-03-05 17:59:29 -05:00
parent e289479c6b
commit cb464c6301

View file

@ -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;
};
})();