Skip to content

Commit

Permalink
remove homepage error on console:
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Jul 22, 2024
1 parent 03e9c85 commit 3888dc9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/app/core/wordpress/wordpress.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ export class WordpressService {
regex,
`${data.url.replace(/wordpress-homepage.*\.js$/, '')}assets/`
)
// By default the script was intented to be executed after the event `DOMContentLoaded`
// but in Angular the event `DOMContentLoaded` is already fired, so we need to execute it
// the following line of code will load the code even if the DOMContentLoaded event is already fired
updateJs += `if (document.readyState === 'complete') {tabtoursInit(document)}`
return updateJs
})
)
Expand Down

0 comments on commit 3888dc9

Please sign in to comment.