mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +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;
|
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');
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue