Skip to content

Commit

Permalink
fix (simple-page-task): wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorMatt committed Apr 28, 2021
1 parent 4676373 commit 44f550f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/adonisjs/public/infra/simple-page-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class PageController {
this.dhtmlLoaded = false
}
}
if(!this.hasremovedLoading || this.dhtmlLoaded){
if(!this.hasremovedLoading && this.dhtmlLoaded){
if(document.querySelector('#loading-page-container')){
setTimeout(function(){
document.querySelector('main').classList.remove('invisible')
Expand All @@ -73,8 +73,9 @@ class PageController {
PageController.instance.appropriateBreadcrumb()
PageController.scriptsComplete = true
// console.log(PageController.scriptsComplete)
this.hasremovedLoading = true

}
this.hasremovedLoading = true
}

controlDropdownMenu(){
Expand Down

0 comments on commit 44f550f

Please sign in to comment.