File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,8 @@ export const locals = (Indiekit) =>
38
38
// Application locale
39
39
application . localeUsed = response . locals . getLocale ( ) ;
40
40
41
- // Application meta
42
- application . repository = Indiekit . package . repository ;
43
- application . version = Indiekit . package . version ;
41
+ // Application package
42
+ application . package = Indiekit . package ;
44
43
45
44
// Application URL
46
45
application . url = application . url || getUrl ( request ) ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export const getServiceWorker = async (application) => {
51
51
const filePath = require . resolve ( "@indiekit/frontend/lib/serviceworker.js" ) ;
52
52
let serviceworker = await readFile ( filePath , { encoding : "utf8" } ) ;
53
53
serviceworker = serviceworker
54
- . replace ( "APP_VERSION" , application . version )
54
+ . replace ( "APP_VERSION" , application . package . version )
55
55
. replace ( "APP_CSS_PATH" , application . cssPath )
56
56
. replace ( "APP_JS_PATH" , application . jsPath ) ;
57
57
return serviceworker ;
Original file line number Diff line number Diff line change 35
35
{% endmacro -%}
36
36
37
37
{%- set versionHtml %}
38
- <a href =" {{ application.repository.url | replace(" .git " , " " ) + " /releases /tag /v " + application.version }}" >
39
- {{ " v" + application .version }}
38
+ <a href =" {{ application.package. repository.url | replace(" .git " , " " ) + " /releases /tag /v " + application.package .version }}" >
39
+ {{- " v" + application .package . version - }}
40
40
</a >
41
41
{% endset -%}
42
42
You can’t perform that action at this time.
0 commit comments