From 126954c948b2587ed34623785d864402bd145420 Mon Sep 17 00:00:00 2001 From: zachmann Date: Fri, 20 Jan 2023 08:37:46 +0100 Subject: [PATCH] [web] fix discovery --- CHANGELOG.md | 4 ++++ internal/server/web/static/js/discovery.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99716ed4..be80914d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ ## mytoken 0.7.2 +### Bugfixes + +- Fixed a bug in the webinterface where the metadata discovery was broken. + ## mytoken 0.7.1 ### Bugfixes diff --git a/internal/server/web/static/js/discovery.js b/internal/server/web/static/js/discovery.js index d2c1765c..8d44a872 100644 --- a/internal/server/web/static/js/discovery.js +++ b/internal/server/web/static/js/discovery.js @@ -11,7 +11,8 @@ const configElements = [ function discovery(...next) { try { - if (storageGet('discovery') !== null) { + const discovery = storageGet('discovery'); + if (discovery !== null && discovery !== undefined) { doNext(...next); return; }