Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Commit

Permalink
feat(@angular/pwa): add content for when javascript is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoho authored and filipesilva committed May 21, 2018
1 parent 0a6fd2c commit 11667c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/angular/pwa/pwa/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function updateIndexFile(options: PwaOptions): Rule {

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

const textToInsertIntoBody = bodyTagIndent + itemsToAddToBody;

Expand Down
2 changes: 1 addition & 1 deletion packages/angular/pwa/pwa/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('PWA Schematic', () => {
expect(content).toMatch(/<link rel="manifest" href="manifest.json">/);
expect(content).toMatch(/<meta name="theme-color" content="#1976d2">/);
expect(content)
.toMatch(/<noscript>Please enable Javascript to continue using this application.<\/noscript>/);
.toMatch(/<noscript>Please enable JavaScript to continue using this application.<\/noscript>/);
});

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

0 comments on commit 11667c6

Please sign in to comment.