From 5fc8672dd6ac9368a86c91a6142c7fc6002470a3 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 21 Mar 2021 00:18:35 +0100 Subject: [PATCH] fix profile detection --- htdocs/openwebrx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 0c535ba..83616a6 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -803,7 +803,7 @@ function on_ws_recv(evt) { // this is a bit hacky since it only makes sense if the error is actually "no sdr devices" // the only other error condition for which the overlay is used right now is "too many users" // so there shouldn't be a problem here - if (json['value'].keys()) { + if (Object.keys(json['value']).length) { $('#openwebrx-error-overlay').hide(); } break;