From 9d69a80cf4c358caafd6351f156c0694a05ef49b Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 3 Mar 2022 16:00:53 +0100 Subject: [PATCH] Make hostname configurable --- static-src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static-src/utils.js b/static-src/utils.js index c7e34c4..32bfdfe 100644 --- a/static-src/utils.js +++ b/static-src/utils.js @@ -44,7 +44,7 @@ export async function computeWKDLocalPart(localPart) { // Generate Keyoxide profile URL export async function generateProfileURL(data) { - let hostname = window.location.hostname; + let hostname = data.hostname || window.location.hostname; if (data.input == "") { return "Waiting for input...";