From 1e61abd2483f10f19c33ab0c54d253826a3275e3 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 7 Aug 2020 11:25:30 +0200 Subject: [PATCH] Expand hn to hackernews --- assets/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts.js b/assets/scripts.js index 7174ece..1219c34 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -481,7 +481,7 @@ async function verifyProof(url, fingerprint) { } // HN if (/^https:\/\/news.ycombinator.com/.test(url)) { - output.type = "hn"; + output.type = "hackernews"; match = url.match(/https:\/\/news.ycombinator.com\/user\?id=(.*)/); output.display = match[1]; output.proofUrlFetch = `https://hacker-news.firebaseio.com/v0/user/${match[1]}.json`;