- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/@schematics/angular/universal/index.js
r59329aa re29cc2e 131 131 // indent contents 132 132 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 137 if (document.readyState === 'complete') { 138 bootstrap(); 139 } else { 140 document.addEventListener('DOMContentLoaded', bootstrap); 141 } 142 `; 136 143 // in some cases we need to cater for a trailing semicolon such as; 137 144 // bootstrap().catch(err => console.log(err));
Note:
See TracChangeset
for help on using the changeset viewer.