mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 17:06:37 -04:00
*much* stricter typescript (and some js) linting 😬
This commit is contained in:
@ -26,8 +26,12 @@ if (wrapper) {
|
||||
const hitsComma = numeral(data.hits).format("0,0");
|
||||
const hitsPlural = data.hits === 1 ? "hit" : "hits";
|
||||
|
||||
if (spinner) spinner.style.display = "none";
|
||||
if (counter) counter.appendChild(document.createTextNode(hitsComma));
|
||||
if (spinner) {
|
||||
spinner.style.display = "none";
|
||||
}
|
||||
if (counter) {
|
||||
counter.appendChild(document.createTextNode(hitsComma));
|
||||
}
|
||||
wrapper.title = hitsComma + " " + hitsPlural;
|
||||
} else {
|
||||
// something went horribly wrong, initiate coverup
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* eslint-disable */
|
||||
/*! Dark mode switcheroo | MIT License | jrvs.io/darkmode */
|
||||
|
||||
// improve variable mangling when minifying
|
||||
|
@ -1,7 +1,7 @@
|
||||
import twemoji from "twemoji";
|
||||
|
||||
twemoji.parse(document.body, {
|
||||
callback: function (icon, options) {
|
||||
callback: function (icon) {
|
||||
// simpler relative URIs
|
||||
return "/assets/emoji/" + icon + ".svg";
|
||||
},
|
||||
|
Reference in New Issue
Block a user