mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
github auth: improve test env detection
cc @RMacfarlane
This commit is contained in:
parent
b5dfdbe00f
commit
a09d640311
|
@ -45,7 +45,7 @@ export class GitHubServer {
|
|||
constructor(private readonly telemetryReporter: TelemetryReporter) { }
|
||||
|
||||
private isTestEnvironment(url: vscode.Uri): boolean {
|
||||
return url.authority === 'vscode-web-test-playground.azurewebsites.net' || url.authority.startsWith('localhost:');
|
||||
return /\.azurewebsites\.net$/.test(url.authority) || url.authority.startsWith('localhost:');
|
||||
}
|
||||
|
||||
public async login(scopes: string): Promise<string> {
|
||||
|
|
Loading…
Reference in a new issue