mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-08-03 17:59:24 -04:00
feat(web/js): allow running Anubis in non-secure contexts
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
a04620ed61
commit
64e2d0d4ed
@ -108,15 +108,6 @@ const t = (key) => translations[`js_${key}`] || translations[key] || key;
|
|||||||
progress.style.display = "none";
|
progress.style.display = "none";
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!window.isSecureContext) {
|
|
||||||
ohNoes({
|
|
||||||
titleMsg: t('context_not_secure'),
|
|
||||||
statusMsg: t('context_not_secure_msg'),
|
|
||||||
imageSrc: imageURL("reject", anubisVersion, basePrefix),
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
status.innerHTML = t('calculating');
|
status.innerHTML = t('calculating');
|
||||||
|
|
||||||
for (const { value, name, msg } of dependencies) {
|
for (const { value, name, msg } of dependencies) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user