Make buildRings private.

This commit is contained in:
punkfairie 2023-05-10 22:10:11 -07:00
parent b8745fa7e3
commit 2da65e94f7

View file

@ -3,7 +3,7 @@ export class UI {
/* -------------------------------------------------------------------------- buildRings ---- */
static buildRings(body) {
static #buildRings(body) {
const rings = $('<span>')
const seperator = $('<span>').text(' ) ')
rings.appendChild(seperator)
@ -65,7 +65,7 @@ export class UI {
type.appendChild($('<i>').addClass(`flaticon-${body.typeIcon()}`))
// rings
if (body.Rings !== undefined) {
type.appendChild(buildRings(body))
type.appendChild(UI.#buildRings(body))
}
// type
const typeName = body.PlanetClass || body.starType || ''