_updateInnerText() {
            let percent = Math.round(this.percentage * 100) / 100
            if (percent >= 100 && !this.overflow) percent = 100

            if (percent === 100 && this.finishedMessage) {
                this.HTMLprogress.innerText = this.finishedMessage
                this.HTMLouterPercentage.innerText = ''
            } else if (!this.hidePercent) {
                if (this.percentage > 50) {
                    this.HTMLprogress.innerText = percent + '%'
                    this.HTMLouterPercentage.innerText = ''
                } else {
                    this.HTMLouterPercentage.innerText = percent + '%'
                }
            } else {
                this.HTMLouterPercentage.innerText = ''
                this.HTMLprogress.innerText = ''
            }
        }
/**
         * Helper function that updates the percentage that is shown or hidden
         */
Helper function that updates the percentage that is shown or hidden
Helper function that updates the percentage that is shown or hidden
_updateInnerText() {
            let percent = Math.round(this.percentage * 100) / 100
            if (percent >= 100 && !this.overflow) percent = 100
            if (percent === 100 && this.finishedMessage) {
                this.HTMLprogress.innerText = this.finishedMessage
                this.HTMLouterPercentage.innerText = ''
            } else if (!this.hidePercent) {
                if (this.percentage > 50) {
                    this.HTMLprogress.innerText = percent + '%'
                    this.HTMLouterPercentage.innerText = ''
                } else {
                    this.HTMLouterPercentage.innerText = percent + '%'
                }
            } else {
                this.HTMLouterPercentage.innerText = ''
                this.HTMLprogress.innerText = ''
            }
        }
_updateInnerText ( ) { let percent = Math . round ( this . percentage * 100 ) / 100 if ( percent >= 100 && ! this . overflow ) percent = 100 if ( percent === 100 && this . finishedMessage ) { this . HTMLprogress . innerText = this . finishedMessage this . HTMLouterPercentage . innerText = '' } else if ( ! this . hidePercent ) { if ( this . percentage > 50 ) { this . HTMLprogress . innerText = percent + '%' this . HTMLouterPercentage . innerText = '' } else { this . HTMLouterPercentage . innerText = percent + '%' } } else { this . HTMLouterPercentage . innerText = '' this . HTMLprogress . innerText = '' } }
Helper function that updates the percentage that is shown or hidden
Helper function that updates the percentage that is shown or hidden