aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index bd428160..02c318b6 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -8,6 +8,9 @@ export function scroll(section) {
}
const base = browser ? '' : PUBLIC_COINOS_URL;
+export const runner = (k) => {
+ return Math.round((parseInt(k[0], 16) - 1) / 15 * 7) + 1 + '.webp';
+};
export const g = (url, fetch, headers) =>
fetch(base + url, { headers })