mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 22:14:40 +03:00
web interfaces: don't include version number in html, only return it after authentication
second round for issue #322
This commit is contained in:
@ -127,12 +127,13 @@ ensureCSS('.autosize::after', {content: 'attr(data-value)', marginRight: '1em',
|
||||
|
||||
// From HTML.
|
||||
declare let page: HTMLElement
|
||||
declare let moxversion: string
|
||||
declare let moxgoos: string
|
||||
declare let moxgoarch: string
|
||||
// From customization script.
|
||||
declare let moxBeforeDisplay: (root: HTMLElement) => void
|
||||
|
||||
let moxversion: string
|
||||
let moxgoos: string
|
||||
let moxgoarch: string
|
||||
|
||||
// All logging goes through log() instead of console.log, except "should not happen" logging.
|
||||
let log: (...args: any[]) => void = () => {}
|
||||
try {
|
||||
@ -6342,6 +6343,8 @@ const init = async () => {
|
||||
let requestNotFilter = newNotFilter()
|
||||
let requestMsgID = 0 // If > 0, we are still expecting a parsed message for the view, coming from the query. Either we get it and set msgitemViewActive and clear this, or we get to the end of the data and clear it.
|
||||
|
||||
;[moxversion, moxgoos, moxgoarch] = await client.Version()
|
||||
|
||||
const updatePageTitle = () => {
|
||||
const mb = mailboxlistView && mailboxlistView.activeMailbox()
|
||||
const addr = loginAddress ? loginAddress.User+'@'+formatDomain(loginAddress.Domain) : ''
|
||||
|
Reference in New Issue
Block a user