add default api url back

This commit is contained in:
blueb 2023-08-22 02:24:53 -04:00
parent 793f0c8703
commit 4910a2b04b
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,7 @@
"SettingsThemeLight": "light", "SettingsThemeLight": "light",
"SettingsThemeDark": "dark", "SettingsThemeDark": "dark",
"SettingsServerPicker": "server picker", "SettingsServerPicker": "server picker",
"SettingsServerPickerDefault": "default",
"SettingsServerPickerDescription": "choose which server to download from, default is ", "SettingsServerPickerDescription": "choose which server to download from, default is ",
"SettingsKeepDownloadButton": "keep >> visible", "SettingsKeepDownloadButton": "keep >> visible",
"AccessibilityKeepDownloadButton": "keep the download button always visible", "AccessibilityKeepDownloadButton": "keep the download button always visible",

View File

@ -32,7 +32,7 @@ for (let i in donations["crypto"]) {
let servers = otherServers.map((p) => { let servers = otherServers.map((p) => {
if (p === "default") { if (p === "default") {
return { "action": defaultApiURL, "text": defaultApiURL.replace("https://","") } return { "action": defaultApiURL }
} else { } else {
return { "action": p, "text": p.replace("https://","") } return { "action": p, "text": p.replace("https://","") }
} }
@ -48,6 +48,7 @@ export default function(obj) {
let platform = isMobile ? "m" : "p"; let platform = isMobile ? "m" : "p";
if (isMobile && isIOS) platform = "i"; if (isMobile && isIOS) platform = "i";
servers[0]["text"] = t('SettingsServerPickerDefault');
audioFormats[0]["text"] = t('SettingsAudioFormatBest'); audioFormats[0]["text"] = t('SettingsAudioFormatBest');
try { try {