Skip to content

Commit

Permalink
grab git hash from VERSION.txt and put in site footer
Browse files Browse the repository at this point in the history
  • Loading branch information
knandersen committed Dec 28, 2022
1 parent 3e7bf81 commit b5e3d3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ <h3>SHORTCUTS</h3>
<section class="footer">this is an <a href="https://github.com/knandersen/morphaweb" target="_blank">open source
project</a>
by kevin nørby andersen. all data is processed client-side, which means it stays with you and only you.
<br />
<strong>version <span id="version"></span></strong>
</section>
</section>

Expand Down
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import Morphaweb from './Morphaweb'
import version from 'bundle-text:../assets/VERSION.txt'

const morphaweb = new Morphaweb()
const morphaweb = new Morphaweb()

const versionElement = document.getElementById('version')
versionElement.textContent = version

0 comments on commit b5e3d3e

Please sign in to comment.