File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ import { KnownHttpHeaders } from "../models/knownHttpHeaders";
66import { ServiceDescriptionContract } from "../contracts/service" ;
77import { SettingNames } from "../constants" ;
88
9- const sessionLoaded = "ArmSessionLoaded" ;
10-
119export class AzureResourceManagementService {
1210 constructor (
1311 private readonly httpClient : HttpClient ,
@@ -82,8 +80,7 @@ export class AzureResourceManagementService {
8280 const managementApiUrl = `https://${ armEndpoint } /subscriptions/${ subscriptionId } /resourceGroups/${ resourceGroupName } /providers/Microsoft.ApiManagement/service/${ serviceName } ` ;
8381 await this . settingsProvider . setSetting ( SettingNames . managementApiUrl , managementApiUrl ) ;
8482 await this . settingsProvider . setSetting ( SettingNames . backendUrl , `https://${ serviceName } .developer.azure-api.net` ) ;
85- if ( ! sessionStorage . getItem ( sessionLoaded ) ) {
86- sessionStorage . setItem ( sessionLoaded , "true" ) ;
83+ if ( url . searchParams . has ( SettingNames . subscriptionId ) ) {
8784 location . href = location . origin + location . pathname ;
8885 }
8986 }
You can’t perform that action at this time.
0 commit comments