Make hostname configurable

This commit is contained in:
Yarmo Mackenbach 2022-03-03 16:00:53 +01:00
parent e6f4796399
commit 9d69a80cf4
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

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