mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Bring in branding when built (#251451)
* Bring in branding when built Since we shouldn't have "Visual Studio Code" in this OSS repo. * fix test
This commit is contained in:
committed by
GitHub
parent
35c4aeb69d
commit
9cbcaa893f
@@ -10,12 +10,12 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<a class="branding" href="https://code.visualstudio.com/">
|
||||
Visual Studio Code
|
||||
</a>
|
||||
<a class="branding app-name" href="https://code.visualstudio.com/"></a>
|
||||
<div class="message-container">
|
||||
<div class="message">
|
||||
You are signed in now and can close this page.
|
||||
Sign-in successful! Returning to <span class="app-name"></span>...
|
||||
<br><br>
|
||||
If you're not redirected automatically, <a href="#" id="fallback-link" style="color: #85CEFF;">click here</a> or close this page.
|
||||
</div>
|
||||
<div class="error-message">
|
||||
An error occurred while signing in:
|
||||
@@ -23,14 +23,23 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var urlParams = new URLSearchParams(window.location.search);
|
||||
var error = urlParams.get('error');
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const error = urlParams.get('error');
|
||||
const redirectUri = urlParams.get('redirect_uri');
|
||||
|
||||
if (error) {
|
||||
document.querySelector('.error-text')
|
||||
.textContent = error;
|
||||
document.querySelector('body')
|
||||
.classList.add('error');
|
||||
} else if (urlParams.get('redirect_uri')) {
|
||||
} else if (redirectUri) {
|
||||
// Set up the fallback link
|
||||
const fallbackLink = document.getElementById('fallback-link');
|
||||
if (fallbackLink) {
|
||||
fallbackLink.href = redirectUri;
|
||||
}
|
||||
|
||||
// Redirect after a delay
|
||||
setTimeout(() => {
|
||||
window.location = urlParams.get('redirect_uri');
|
||||
}, 1000);
|
||||
|
||||
Reference in New Issue
Block a user