diff --git a/UI/BigComponents/ShareScreen.ts b/UI/BigComponents/ShareScreen.ts index 5ff2354a6a..3dcc5f597c 100644 --- a/UI/BigComponents/ShareScreen.ts +++ b/UI/BigComponents/ShareScreen.ts @@ -110,25 +110,18 @@ export default class ShareScreen extends Combine { { urlName: "fs-search", human: tr.fsSearch }, { urlName: "fs-welcome-message", human: tr.fsWelcomeMessage }, { urlName: "fs-layers", human: tr.fsLayers }, - { urlName: "layer-control-toggle", human: tr.fsLayerControlToggle, reverse: true }, { urlName: "fs-add-new", human: tr.fsAddNew }, { urlName: "fs-geolocation", human: tr.fsGeolocation }, ] for (const swtch of switches) { - const checkbox = new CheckBox(Translations.W(swtch.human), !swtch.reverse) + const checkbox = new CheckBox(Translations.W(swtch.human)) optionCheckboxes.push(checkbox) optionParts.push( checkbox.GetValue().map((isEn) => { if (isEn) { - if (swtch.reverse) { - return `${swtch.urlName}=true` - } return null } else { - if (swtch.reverse) { - return null - } return `${swtch.urlName}=false` } })