mirror of
https://github.com/Microsoft/vscode
synced 2024-07-17 02:57:19 +00:00
Remove deprecated lang param from privacy URL
This commit is contained in:
parent
d611085ac1
commit
d9e316e1f6
|
@ -154,12 +154,7 @@ export class Menubar {
|
|||
const privacyStatementUrl = this.productService.privacyStatementUrl;
|
||||
if (privacyStatementUrl && licenseUrl) {
|
||||
this.fallbackMenuHandlers['workbench.action.openPrivacyStatementUrl'] = () => {
|
||||
if (language) {
|
||||
const queryArgChar = licenseUrl.indexOf('?') > 0 ? '&' : '?';
|
||||
this.openUrl(`${privacyStatementUrl}${queryArgChar}lang=${language}`, 'openPrivacyStatement');
|
||||
} else {
|
||||
this.openUrl(privacyStatementUrl, 'openPrivacyStatement');
|
||||
}
|
||||
this.openUrl(privacyStatementUrl, 'openPrivacyStatement');
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -311,12 +311,7 @@ class OpenPrivacyStatementUrlAction extends Action2 {
|
|||
const openerService = accessor.get(IOpenerService);
|
||||
|
||||
if (productService.privacyStatementUrl) {
|
||||
if (language) {
|
||||
const queryArgChar = productService.privacyStatementUrl.indexOf('?') > 0 ? '&' : '?';
|
||||
openerService.open(URI.parse(`${productService.privacyStatementUrl}${queryArgChar}lang=${language}`));
|
||||
} else {
|
||||
openerService.open(URI.parse(productService.privacyStatementUrl));
|
||||
}
|
||||
openerService.open(URI.parse(productService.privacyStatementUrl));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue