small patch fix at switchTab in iFrame (#3435)

pull/3447/head
Daniel 2021-02-22 13:20:37 +05:30 committed by GitHub
parent a66d5d7811
commit 0f694c624d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -108,12 +108,12 @@ class IFrame {
$loadingScreen.fadeIn()
$(`${tabId} iframe`).ready(() => {
if (typeof this._config.loadingScreen === 'number') {
this.switchTab(`#${navId}`, this._config.loadingScreen)
this.switchTab(`#${navId}`)
setTimeout(() => {
$loadingScreen.fadeOut()
}, this._config.loadingScreen)
} else {
this.switchTab(`#${navId}`, this._config.loadingScreen)
this.switchTab(`#${navId}`)
$loadingScreen.fadeOut()
}
})