Skip to content

Commit ad84bb1

Browse files
clydinhansl
authored andcommitted
fix(@angular/pwa): properly write closing body tag when modifying index
Fixes #11543 Fixes #11942
1 parent 682cae1 commit ad84bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/pwa/pwa/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function updateIndexFile(options: PwaOptions): Rule {
9393
...itemsToAddToHead.map(line => headIndent + line),
9494
...lines.slice(closingHeadTagLineIndex, closingBodyTagLineIndex),
9595
...itemsToAddToBody.map(line => bodyIndent + line),
96-
...lines.slice(closingHeadTagLineIndex),
96+
...lines.slice(closingBodyTagLineIndex),
9797
].join('\n');
9898

9999
host.overwrite(path, updatedIndex);

0 commit comments

Comments
 (0)