anubis-patches/patches/0003-disable-secure-context.patch
Fijxu f10b7f74be
All checks were successful
Docker image builds / build (push) Successful in 2m31s
update anubis and patches
2025-04-20 17:23:32 -04:00

39 lines
1.5 KiB
Diff

From 1555f2c81ee223d1e923050841bd8ba4bfe6e11c Mon Sep 17 00:00:00 2001
From: Fijxu <fijxu@nadeko.net>
Date: Sun, 20 Apr 2025 17:23:17 -0400
Subject: [PATCH 3/3] disable secure context
---
web/js/main.mjs | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/web/js/main.mjs b/web/js/main.mjs
index 7203bfd..d250aa8 100644
--- a/web/js/main.mjs
+++ b/web/js/main.mjs
@@ -100,14 +100,14 @@ function showContinueBar(hash, nonce, t0, t1) {
progress.style.display = "none";
};
- if (!window.isSecureContext) {
- ohNoes({
- titleMsg: "Your context is not secure!",
- statusMsg: `Try connecting over HTTPS or let the admin know to set up HTTPS. For more information, see <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts#when_is_a_context_considered_secure">MDN</a>.`,
- ...(enableMascot && { imageSrc: imageURL("reject", anubisVersion) }),
- });
- return;
- }
+ // if (!window.isSecureContext) {
+ // ohNoes({
+ // titleMsg: "Your context is not secure!",
+ // statusMsg: `Try connecting over HTTPS or let the admin know to set up HTTPS. For more information, see <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts#when_is_a_context_considered_secure">MDN</a>.`,
+ // ...(enableMascot && { imageSrc: imageURL("reject", anubisVersion) }),
+ // });
+ // return;
+ // }
// const testarea = document.getElementById('testarea');
--
2.49.0