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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]