Skip to content

Commit

Permalink
Fixed error on loader
Browse files Browse the repository at this point in the history
  • Loading branch information
mucill committed Jan 29, 2020
1 parent 4d3c469 commit 51a5f3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/updater.js
Expand Up @@ -92,8 +92,10 @@ jQuery.fn.simbioAJAX = async function(strURL, params)
data : options.addData, async: false })

// clear error message
if (loader.html().indexOf('Error') > -1) {
loader.html(' ')
if(loader.html()) {
if (loader.html().indexOf('Error') > -1) {
loader.html(' ')
}
}
loader.removeAttr('style')
} catch (err) {
Expand Down

0 comments on commit 51a5f3a

Please sign in to comment.