refactor(csp): Update how the JavaScript run function is invoked in oauth2-redirect.html (#6393)
ref #5720
This commit is contained in:
@@ -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>
|
||||
|
||||
6
dist/oauth2-redirect.html
vendored
6
dist/oauth2-redirect.html
vendored
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user