ashb commented on code in PR #47432:
URL: https://github.com/apache/airflow/pull/47432#discussion_r1991062550


##########
providers/fab/src/airflow/providers/fab/www/templates/airflow/token_set.html:
##########
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>Redirecting...</title>
+  <script type="text/javascript">
+    document.addEventListener("DOMContentLoaded", function () {
+      localStorage.setItem("token", JSON.stringify("{{ token }}"));
+      window.location.href = "{{ redirect_url }}";
+    });

Review Comment:
   Although the page is small, there's no really point waiting for 
DOMContentLoaded is there? Just do this all directly here in the script tag? 



-- 
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]

Reply via email to