From ad852a70a4ea143fca05814357f20207d12c8248 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sun, 7 Nov 2021 15:42:33 +0100 Subject: [PATCH] Cap priority at 100 --- request-cluster.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request-cluster.ts b/request-cluster.ts index 0849a96..98fe72a 100644 --- a/request-cluster.ts +++ b/request-cluster.ts @@ -37,7 +37,7 @@ export class StolenDataEntry { getPriority() { let priority = 0; - priority += this.value.length; + priority += Math.min(this.value.length, 100); const url = new URL(this.request.getOrigin()); if (this.value.includes(url.host) || this.value.includes(url.pathname)) { priority += 100;