mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +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');
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -311,14 +311,9 @@ 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// --- Actions Registration
|
||||
|
|
Loading…
Reference in a new issue