make default say the url instead

This commit is contained in:
blueb 2023-08-21 21:44:43 -04:00
parent 2250d23e19
commit de8d183577
2 changed files with 5 additions and 4 deletions

View File

@ -40,10 +40,9 @@
"SettingsThemeAuto": "auto", "SettingsThemeAuto": "auto",
"SettingsThemeLight": "light", "SettingsThemeLight": "light",
"SettingsThemeDark": "dark", "SettingsThemeDark": "dark",
"SettingsKeepDownloadButton": "keep >> visible",
"SettingsServerPicker": "server picker", "SettingsServerPicker": "server picker",
"SettingsServerPickerDefault": "default",
"SettingsServerPickerDescription": "choose which server to download from", "SettingsServerPickerDescription": "choose which server to download from",
"SettingsKeepDownloadButton": "keep >> visible",
"AccessibilityKeepDownloadButton": "keep the download button always visible", "AccessibilityKeepDownloadButton": "keep the download button always visible",
"SettingsEnableDownloadPopup": "ask how to save", "SettingsEnableDownloadPopup": "ask how to save",
"AccessibilityEnableDownloadPopup": "ask what to do with downloads", "AccessibilityEnableDownloadPopup": "ask what to do with downloads",

View File

@ -28,6 +28,8 @@ for (let i in donations["crypto"]) {
extr = ' top-margin' extr = ' top-margin'
} }
let defaultApiURL = process.env.apiURL ? process.env.apiURL.slice(0, -1) : '';
export default function(obj) { export default function(obj) {
const t = (str, replace) => { return loc(obj.lang, str, replace) }; const t = (str, replace) => { return loc(obj.lang, str, replace) };
@ -460,8 +462,8 @@ export default function(obj) {
explanation: t(['SettingsServerPickerDescription']), explanation: t(['SettingsServerPickerDescription']),
vertical: true, vertical: true,
items: [{ items: [{
action: process.env.apiURL ? process.env.apiURL.slice(0, -1) : '', action: defaultApiURL,
text: t('SettingsServerPickerDefault') text: defaultApiURL.replace("https://","")
}, { }, {
action: "https://co.wuk.sh", action: "https://co.wuk.sh",
text: "co.wuk.sh" text: "co.wuk.sh"