Skip to content

Commit

Permalink
Browsers other than gecko can behave differently too if the window is…
Browse files Browse the repository at this point in the history
… not in focus.
  • Loading branch information
barancev committed May 8, 2018
1 parent bb24888 commit 79a315a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/atoms/test/test_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ bot.test.SUPPORTS_INLINE_SVG = !bot.userAgent.IE_DOC_PRE9 &&
* @return {boolean} Whether the window under test has focus.
*/
bot.test.isWindowFocused = function() {
return !goog.userAgent.GECKO || window.document.hasFocus();
return window.document.hasFocus();
};

0 comments on commit 79a315a

Please sign in to comment.