Cap priority at 100

This commit is contained in:
Kuba Orlik 2021-11-07 15:42:33 +01:00
parent 66272fa318
commit ad852a70a4
1 changed files with 1 additions and 1 deletions

View File

@ -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;