Remove deprecated lang param from privacy URL

This commit is contained in:
Harald Kirschner 2021-07-26 18:07:08 -07:00
parent d611085ac1
commit d9e316e1f6
2 changed files with 2 additions and 12 deletions

View file

@ -154,12 +154,7 @@ export class Menubar {
const privacyStatementUrl = this.productService.privacyStatementUrl; const privacyStatementUrl = this.productService.privacyStatementUrl;
if (privacyStatementUrl && licenseUrl) { if (privacyStatementUrl && licenseUrl) {
this.fallbackMenuHandlers['workbench.action.openPrivacyStatementUrl'] = () => { this.fallbackMenuHandlers['workbench.action.openPrivacyStatementUrl'] = () => {
if (language) { this.openUrl(privacyStatementUrl, 'openPrivacyStatement');
const queryArgChar = licenseUrl.indexOf('?') > 0 ? '&' : '?';
this.openUrl(`${privacyStatementUrl}${queryArgChar}lang=${language}`, 'openPrivacyStatement');
} else {
this.openUrl(privacyStatementUrl, 'openPrivacyStatement');
}
}; };
} }
} }

View file

@ -311,12 +311,7 @@ class OpenPrivacyStatementUrlAction extends Action2 {
const openerService = accessor.get(IOpenerService); const openerService = accessor.get(IOpenerService);
if (productService.privacyStatementUrl) { if (productService.privacyStatementUrl) {
if (language) { openerService.open(URI.parse(productService.privacyStatementUrl));
const queryArgChar = productService.privacyStatementUrl.indexOf('?') > 0 ? '&' : '?';
openerService.open(URI.parse(`${productService.privacyStatementUrl}${queryArgChar}lang=${language}`));
} else {
openerService.open(URI.parse(productService.privacyStatementUrl));
}
} }
} }
} }