Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 11667c6

Browse files
markgohofilipesilva
authored andcommitted
feat(@angular/pwa): add content for when javascript is not available
1 parent 0a6fd2c commit 11667c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/angular/pwa/pwa/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function updateIndexFile(options: PwaOptions): Rule {
9292

9393
const bodyTagIndent = getIndent(closingBodyTagLine) + ' ';
9494
const itemsToAddToBody
95-
= '<noscript>Please enable Javascript to continue using this application.</noscript>';
95+
= '<noscript>Please enable JavaScript to continue using this application.</noscript>';
9696

9797
const textToInsertIntoBody = bodyTagIndent + itemsToAddToBody;
9898

packages/angular/pwa/pwa/index_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe('PWA Schematic', () => {
9494
expect(content).toMatch(/<link rel="manifest" href="manifest.json">/);
9595
expect(content).toMatch(/<meta name="theme-color" content="#1976d2">/);
9696
expect(content)
97-
.toMatch(/<noscript>Please enable Javascript to continue using this application.<\/noscript>/);
97+
.toMatch(/<noscript>Please enable JavaScript to continue using this application.<\/noscript>/);
9898
});
9999

100100
it('should update the build and test assets configuration', () => {

0 commit comments

Comments
 (0)