From 0916d0c44074e543e0ecda3dafa34f8ca4307533 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 13 Mar 2022 16:41:04 +0000 Subject: [PATCH] monitor/schemas.html: Actually, those bits are schema URLs, so revert change It's only the monitor endpoint URL that needed to be configurable. Anyone using this wholesale for schemas not under eddn.edcd.io gets to make the necessary hard-coded changes. --- contrib/monitor/schemas.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/monitor/schemas.html b/contrib/monitor/schemas.html index 6cded6f..179fbe5 100644 --- a/contrib/monitor/schemas.html +++ b/contrib/monitor/schemas.html @@ -122,13 +122,13 @@ return finishedslug.toLowerCase(); } var makeName = function(str) { - var match = /^https:\/\/' + eddn_config.eddn_host + '\/schemas\/(\w)(\w*)\/(\d+)$/.exec(str); + var match = /^https:\/\/eddn.edcd.io\/schemas\/(\w)(\w*)\/(\d+)$/.exec(str); if(match) { return match[1].toUpperCase() + match[2] + " v" + match[3]; } - var match = /^https:\/\/' + eddn_config.eddn_host + '\/schemas\/(\w)(\w*)\/(\d+)\/test$/.exec(str); + var match = /^https:\/\/eddn.edcd.io\/schemas\/(\w)(\w*)\/(\d+)\/test$/.exec(str); if(match) { return match[1].toUpperCase() + match[2] + " v" + match[3] + " [TEST]";