mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-16 18:28:29 +00:00
add default api url back
This commit is contained in:
parent
793f0c8703
commit
4910a2b04b
@ -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",
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user