Skip to content

Commit

Permalink
change var names and presenation
Browse files Browse the repository at this point in the history
  • Loading branch information
vctt94 committed Jul 16, 2021
1 parent 5a65c7e commit b1e8b12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/webserver/site/src/js/markets.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export default class MarketsPage extends BasePage {
this.ordersSortKey = 'stamp'
// 1 if sorting ascendingly, -1 if sorting descendingly.
this.ordersSortDirection = 1
// store original title so we can re-append it when updating market value.
this.ogTitle = document.title

const reporters = {
click: p => { this.reportClick(p) },
Expand Down Expand Up @@ -966,11 +968,11 @@ export default class MarketsPage extends BasePage {

const market = this.market
const [b, q] = [market.baseCfg, market.quoteCfg]
const firstSymbol = b.symbol.toUpperCase()
const secondSybol = q.symbol.toUpperCase()
const baseSymb = b.symbol.toUpperCase()
const quoteSymb = q.symbol.toUpperCase()
if (midGapValue) {
// more than 6 numbers it gets too big for the title.
document.title = `${midGapValue.toFixed(5)} ${firstSymbol}/${secondSybol}`
document.title = `${midGapValue.toFixed(6)} | ${baseSymb}${quoteSymb} | ${this.ogTitle}`
}
}

Expand Down

0 comments on commit b1e8b12

Please sign in to comment.