(function (window, document) { // eslint-disable-line no-unused-vars
  'use strict';
  var lima = window.lima;
  var _ = lima._;  // underscore symbol is used for brevity, defined in tools.js

  var footer = _.findEl('body > footer');

  if (!footer) return;

  footer.innerHTML += '<p class="limaversion">version <span class="value">&hellip;</span> (<a href="/version/log">full changelog</a>)</p>';

  fetch('/version', { credentials: 'same-origin' })
  .then(_.fetchText)
  .then(function (text) { _.fillEls('.limaversion .value', text);})
  .catch(function (err) {
    console.error("problem getting version");
    console.error(err);
  });

})(window, document);

@@ -1,17 +1,23 @@
 (
+async 
 function (window
@@ -86,19 +86,21 @@
 ict';%0A  
-var
+const
  lima = 
@@ -114,19 +114,21 @@
 lima;%0A  
-var
+const
  _ = lim
@@ -198,19 +198,21 @@
 s.js%0A%0A  
-var
+const
  footer 
@@ -320,20 +320,17 @@
 ersion %3C
-span
+a
  class=%22
@@ -350,12 +350,9 @@
 p;%3C/
-span
+a
 %3E (%3C
@@ -402,16 +402,49 @@
 p%3E';%0A%0A  
+try %7B%0A    const response = await 
 fetch('/
@@ -488,115 +488,264 @@
 ' %7D)
-%0A  .then(_.fetchText)%0A  .then(function (text) %7B _.fillEls('.limaversion .value', text);%7D)%0A  .catch(function
+;%0A    const text = await _.fetchText(response);%0A    _.fillEls('.limaversion .value', text.substring(0, 8));%0A    const url = %60https://github.com/jacekkopecky/living-meta-analysis/commit/$%7Btext%7D%60;%0A    _.setProps('.limaversion .value', 'href', url);%0A  %7D catch
  (er
@@ -822,19 +822,16 @@
 rr);%0A  %7D
-);%0A
 %0A%7D)(wind

use SHA version