mirror of
https://github.com/xyzeva/k-id-age-verifier.git
synced 2026-07-25 21:20:56 +02:00
fix: we're so back (again) (again) (again) (again)
This commit is contained in:
@@ -379,13 +379,13 @@ async function verify(qrCodeUrlStr: string) {
|
||||
|
||||
const generateTimeline = (maxTime: number) => {
|
||||
const entries = [];
|
||||
let lastTime = randomInt(100, 500);
|
||||
let lastTime = randomInt(1, 5);
|
||||
|
||||
for (let i = 0; i < randomInt(1, 3); i++) {
|
||||
const end = lastTime + randomInt(500, 2000);
|
||||
const end = lastTime + randomInt(5, 20);
|
||||
if (end < maxTime) {
|
||||
entries.push([lastTime, end]);
|
||||
lastTime = end + randomInt(200, 1000);
|
||||
lastTime = end + randomInt(20, 100);
|
||||
}
|
||||
}
|
||||
return entries;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import QRCodeScanner from '$lib/components/QRCodeScanner.svelte';
|
||||
|
||||
const IS_PATCHED = true;
|
||||
const IS_PATCHED = false;
|
||||
</script>
|
||||
|
||||
<div class="mx-auto w-screen max-w-6xl items-center p-5 pb-16">
|
||||
|
||||
@@ -423,13 +423,13 @@ async function verify(
|
||||
|
||||
const generateTimeline = (maxTime: number) => {
|
||||
const entries = [];
|
||||
let lastTime = randomInt(100, 500);
|
||||
let lastTime = randomInt(1, 5);
|
||||
|
||||
for (let i = 0; i < randomInt(1, 3); i++) {
|
||||
const end = lastTime + randomInt(500, 2000);
|
||||
const end = lastTime + randomInt(5, 20);
|
||||
if (end < maxTime) {
|
||||
entries.push([lastTime, end]);
|
||||
lastTime = end + randomInt(200, 1000);
|
||||
lastTime = end + randomInt(20, 100);
|
||||
}
|
||||
}
|
||||
return entries;
|
||||
|
||||
Reference in New Issue
Block a user