From cd8b607891a786c77986ffee45dbd75f51610a01 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Wed, 14 Sep 2022 04:57:58 -0700 Subject: [PATCH] Fix tighten condition for selfhosted check --- frontend/src/components/UnsafeAlert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/UnsafeAlert.js b/frontend/src/components/UnsafeAlert.js index 2d79703e..784a6e8f 100644 --- a/frontend/src/components/UnsafeAlert.js +++ b/frontend/src/components/UnsafeAlert.js @@ -24,7 +24,7 @@ class UnsafeAlert extends Component { const http = new XMLHttpRequest(); http.open('HEAD', `${location.protocol}//${this.getHost()}/selfhosted`, false); http.send(); - return http.status != 404; + return http.status == 200; } safe_urls = [