Skip to content

Commit b5e3d3e

Browse files
committed
grab git hash from VERSION.txt and put in site footer
1 parent 3e7bf81 commit b5e3d3e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ <h3>SHORTCUTS</h3>
5656
<section class="footer">this is an <a href="https://github.com/knandersen/morphaweb" target="_blank">open source
5757
project</a>
5858
by kevin nørby andersen. all data is processed client-side, which means it stays with you and only you.
59+
<br />
60+
<strong>version <span id="version"></span></strong>
5961
</section>
6062
</section>
6163

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
import Morphaweb from './Morphaweb'
2+
import version from 'bundle-text:../assets/VERSION.txt'
23

3-
const morphaweb = new Morphaweb()
4+
const morphaweb = new Morphaweb()
5+
6+
const versionElement = document.getElementById('version')
7+
versionElement.textContent = version

0 commit comments

Comments
 (0)