mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-16 10:18:28 +00:00
make default say the url instead
This commit is contained in:
parent
2250d23e19
commit
de8d183577
@ -40,10 +40,9 @@
|
||||
"SettingsThemeAuto": "auto",
|
||||
"SettingsThemeLight": "light",
|
||||
"SettingsThemeDark": "dark",
|
||||
"SettingsKeepDownloadButton": "keep >> visible",
|
||||
"SettingsServerPicker": "server picker",
|
||||
"SettingsServerPickerDefault": "default",
|
||||
"SettingsServerPickerDescription": "choose which server to download from",
|
||||
"SettingsKeepDownloadButton": "keep >> visible",
|
||||
"AccessibilityKeepDownloadButton": "keep the download button always visible",
|
||||
"SettingsEnableDownloadPopup": "ask how to save",
|
||||
"AccessibilityEnableDownloadPopup": "ask what to do with downloads",
|
||||
|
@ -28,6 +28,8 @@ for (let i in donations["crypto"]) {
|
||||
extr = ' top-margin'
|
||||
}
|
||||
|
||||
let defaultApiURL = process.env.apiURL ? process.env.apiURL.slice(0, -1) : '';
|
||||
|
||||
export default function(obj) {
|
||||
const t = (str, replace) => { return loc(obj.lang, str, replace) };
|
||||
|
||||
@ -460,8 +462,8 @@ export default function(obj) {
|
||||
explanation: t(['SettingsServerPickerDescription']),
|
||||
vertical: true,
|
||||
items: [{
|
||||
action: process.env.apiURL ? process.env.apiURL.slice(0, -1) : '',
|
||||
text: t('SettingsServerPickerDefault')
|
||||
action: defaultApiURL,
|
||||
text: defaultApiURL.replace("https://","")
|
||||
}, {
|
||||
action: "https://co.wuk.sh",
|
||||
text: "co.wuk.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user