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
Fix linting error
  • Loading branch information
markgoho authored and filipesilva committed May 21, 2018
1 parent bcc48f3 commit 0a6fd2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/angular/pwa/pwa/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ function updateIndexFile(options: PwaOptions): Rule {
.join('\n');

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

const textToInsertIntoBody = bodyTagIndent + itemsToAddToBody;

Expand Down
3 changes: 2 additions & 1 deletion packages/angular/pwa/pwa/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ 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>/);
expect(content)
.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 0a6fd2c

Please sign in to comment.