refactor(csp): Update how the JavaScript run function is invoked in oauth2-redirect.html (#6393)

ref #5720
This commit is contained in:
Mickaël Derriey
2020-09-12 06:41:10 +10:00
committed by GitHub
parent 7ce8e388df
commit 48ee32faa1
2 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<!doctype html>
<html lang="en-US">
<body onload="run()">
<body>
</body>
</html>
<script>
@@ -64,4 +64,8 @@
}
window.close();
}
window.addEventListener('DOMContentLoaded', function () {
run();
});
</script>

View File

@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en-US">
<title>Swagger UI: OAuth2 Redirect</title>
<body onload="run()">
<body>
</body>
</html>
<script>
@@ -65,4 +65,8 @@
}
window.close();
}
window.addEventListener('DOMContentLoaded', function () {
run();
});
</script>