Adding debug information in the diagnostic screen.

This commit is contained in:
John Livingston 2021-08-04 17:15:58 +02:00
parent ddaf57b5d5
commit b2b489af6e
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export async function diagConverse (test: string, { settingsManager }: RegisterS
) )
isBuiltinError = true isBuiltinError = true
} else { } else {
result.messages.push('Chat room is correct') result.messages.push('Chat room is correct and will be: ' + chatRoom)
} }
const chatBoshUri: string = (builtinSettings['chat-bosh-uri'] as string) || '' const chatBoshUri: string = (builtinSettings['chat-bosh-uri'] as string) || ''

View File

@ -8,6 +8,7 @@ export async function diagUri (test: string, { settingsManager }: RegisterServer
]) ])
if (/^https:\/\//.test(settings['chat-uri'] as string)) { if (/^https:\/\//.test(settings['chat-uri'] as string)) {
result.ok = true result.ok = true
result.messages.push('Chat url will be: ' + (settings['chat-uri'] as string))
} else { } else {
result.messages.push('Incorrect value for the uri (it does not start with https://)') result.messages.push('Incorrect value for the uri (it does not start with https://)')
} }