From feefd9bff0878b699f1193bbaae1856d4c7b6d7c Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 30 May 2022 15:34:02 +0530 Subject: [PATCH] avoid duplicate warning about /api/instance on checkup --- www/checkup/dependency-warning.js | 2 ++ www/checkup/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/www/checkup/dependency-warning.js b/www/checkup/dependency-warning.js index fd07c939b..5e7d5fd33 100644 --- a/www/checkup/dependency-warning.js +++ b/www/checkup/dependency-warning.js @@ -22,6 +22,8 @@ if (/\/api\/.*/.test(src)) { console.error("A serverside API endpoint could not be reached.", src); + // don't warn about bower if the error is the optional instance endpoint + if (/\/api\/instance/.test(src)) { return; } } //if (!/\/bower_components\/.*/.test(src)) { return; } diff --git a/www/checkup/index.html b/www/checkup/index.html index dfe69ca15..6c3b24b7b 100644 --- a/www/checkup/index.html +++ b/www/checkup/index.html @@ -7,6 +7,6 @@
- +