Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/@schematics/angular/universal/index.js

    r59329aa re29cc2e  
    131131        // indent contents
    132132        const triviaWidth = bootstrapCall.getLeadingTriviaWidth();
    133         const beforeText = `document.addEventListener('DOMContentLoaded', () => {\n` +
    134             ' '.repeat(triviaWidth > 2 ? triviaWidth + 1 : triviaWidth);
    135         const afterText = `\n${triviaWidth > 2 ? ' '.repeat(triviaWidth - 1) : ''}});`;
     133        const beforeText = `function bootstrap() {\n` + ' '.repeat(triviaWidth > 2 ? triviaWidth + 1 : triviaWidth);
     134        const afterText = `\n${triviaWidth > 2 ? ' '.repeat(triviaWidth - 1) : ''}};\n` +
     135            `
     136
     137if (document.readyState === 'complete') {
     138  bootstrap();
     139} else {
     140  document.addEventListener('DOMContentLoaded', bootstrap);
     141}
     142`;
    136143        // in some cases we need to cater for a trailing semicolon such as;
    137144        // bootstrap().catch(err => console.log(err));
Note: See TracChangeset for help on using the changeset viewer.