You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/01 21:40:38 UTC

[GitHub] [airflow] ashb commented on a change in pull request #21904: Pause auto-refresh when page is hidden

ashb commented on a change in pull request #21904:
URL: https://github.com/apache/airflow/pull/21904#discussion_r817162170



##########
File path: airflow/www/static/js/utils.js
##########
@@ -41,3 +41,23 @@ export const finalStatesMap = () => new Map([
   ['skipped', 0],
   ['no_status', 0],
 ]);
+
+// Get hidden and visibility strings depending on browser
+export const getVisibilityVars = () => {
+  let hidden;
+  let visibilityChange;
+  if (typeof document.hidden !== 'undefined') { // Opera 12.10 and Firefox 18 and later support

Review comment:
       What browsers do we actually need this conditional for? Opera 12 and FF 18 are Oooold.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org