mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Fix name branding (#251566)
* Fix name branding Typo... * one more fix * move around
This commit is contained in:
committed by
GitHub
parent
44c0f4f997
commit
5d83e82b2d
@@ -24,9 +24,11 @@
|
||||
</div>
|
||||
<script>
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const appName = urlParams.get('app_name');
|
||||
document.querySelectorAll('.app-name').forEach(e => e.innerText = appName);
|
||||
|
||||
const error = urlParams.get('error');
|
||||
const redirectUri = urlParams.get('redirect_uri');
|
||||
|
||||
if (error) {
|
||||
document.querySelector('.error-text')
|
||||
.textContent = error;
|
||||
@@ -41,7 +43,7 @@
|
||||
|
||||
// Redirect after a delay
|
||||
setTimeout(() => {
|
||||
window.location = urlParams.get('redirect_uri');
|
||||
window.location = redirectUri;
|
||||
}, 1000);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user