mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-16 18:28:29 +00:00
make default say the url instead
This commit is contained in:
parent
2250d23e19
commit
de8d183577
@ -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",
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user