Skip to content

Commit

Permalink
fix(angular): use correct ready state for ssr bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Nov 28, 2022
1 parent 9a0db48 commit 19dc124
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -37,7 +37,7 @@ function bootstrap() {
};
if (document.readyState === 'complete') {
if (document.readyState !== 'loading') {
bootstrap();
} else {
document.addEventListener('DOMContentLoaded', bootstrap);
Expand Down
Expand Up @@ -9,7 +9,7 @@ function bootstrap() {
};


if (document.readyState === 'complete') {
if (document.readyState !== 'loading') {
bootstrap();
} else {
document.addEventListener('DOMContentLoaded', bootstrap);
Expand Down
Expand Up @@ -53,7 +53,7 @@ describe('setupSSR', () => {
};
if (document.readyState === 'complete') {
if (document.readyState !== 'loading') {
bootstrap();
} else {
document.addEventListener('DOMContentLoaded', bootstrap);
Expand Down

0 comments on commit 19dc124

Please sign in to comment.