diff --git a/dist/assets/1.main.js b/dist/assets/1.main.js index 7d07098..9cbe406 100644 --- a/dist/assets/1.main.js +++ b/dist/assets/1.main.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{11:function(n,e,t){"use strict";t.r(e),t.d(e,"init",function(){return r});var a=t(0),o=t(1),i=a.a.plugins.find(function(n){return"age"===n.name});Object(o.a)("js-plugin-age");var c=document.getElementById("js-plugin-age"),r=function(){return n=i.birthday,e=i.goal,t=(new Date-new Date(n))/3154e7,o="left until",(a=100-t/e*100)<0&&(o="over goal of",a=-a),void(c.innerHTML="Age: ".concat(t.toFixed(5),", ").concat(a.toFixed(2),"% ").concat(o," ").concat(e));var n,e,t,a,o}}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{11:function(n,e,t){"use strict";t.r(e),t.d(e,"init",function(){return r});var a=t(0),o=t(1),i=a.a.plugins.find(function(n){return"age"===n.name});Object(o.a)("js-plugin-age");var c=document.getElementById("js-plugin-age"),r=function(){return n=i.birthday,e=i.goal,t=(new Date-new Date(n))/31556952e3,o="left until",(a=100-t/e*100)<0&&(o="over goal of",a=-a),void(c.innerHTML="Age: ".concat(t.toFixed(5),", ").concat(a.toFixed(2),"% ").concat(o," ").concat(e));var n,e,t,a,o}}}]); \ No newline at end of file diff --git a/package.json b/package.json index f0904ca..eb1165e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Launchbot", - "version": "3.0.0", + "version": "3.0.2", "description": "Self-hosted open source startpage. Open collections of websites with one click. It’s like restoring tabs, but anywhere.", "author": "Michael Xander", "bugs": "https://github.com/michaelx/Launchbot/issues", diff --git a/src/js/plugins/age.js b/src/js/plugins/age.js index de5db31..e115c1a 100644 --- a/src/js/plugins/age.js +++ b/src/js/plugins/age.js @@ -17,7 +17,7 @@ const renderAge = () => { // Inspired by: // Alex MacCaw https://github.com/maccman/motivation const now = new Date(); - const age = (now - new Date(birthday)) / 3.154e+10; // divided by 1 year in ms + const age = (now - new Date(birthday)) / 3.1556952e+10; // divided by 1 year in ms let remainder = 100 - (age / goal * 100); let goalPrefix = 'left until';