File tree 2 files changed +11
-2
lines changed
addon/ng2/blueprints/ng2/files/__path__
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 13
13
{{#each mobile.icons}}
14
14
< link rel ="{{rel}} " {{#if sizes}}sizes ="{{sizes}} " {{ /if}}href="{{href}} ">
15
15
{{/each}}
16
-
16
+ {{#if environment.production}}
17
+ < script type ="text/javascript ">
18
+ if ( 'serviceWorker' in navigator ) {
19
+ navigator . serviceWorker . register ( '/worker.js' ) . catch ( function ( err ) {
20
+ console . log ( 'Error installing service worker: ' , err ) ;
21
+ } ) ;
22
+ }
23
+ </ script >
24
+ {{/if}}
25
+ < % } %>
17
26
</ head >
18
27
< body >
19
28
< < %= htmlComponentName %> -app> Loading...</ < %= htmlComponentName %> -app>
Original file line number Diff line number Diff line change 64
64
"ts-loader" : " ^0.8.2" ,
65
65
"typescript" : " ^1.9.0-dev.20160606-1.0" ,
66
66
"typings" : " ^0.8.1" ,
67
- "webpack" : " ^ 2.1.0-beta.8 "
67
+ "webpack" : " 2.1.0-beta.12 "
68
68
},
69
69
"ember-addon" : {
70
70
"paths" : [
You can’t perform that action at this time.
0 commit comments