ydcfydf
All checks were successful
Deploy / deploy-staging (push) Successful in 7s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-06 00:00:37 +02:00
parent 48b7583f19
commit 47757675c2
5 changed files with 33 additions and 47 deletions

View File

@@ -26,7 +26,7 @@
return [];
}
})();
const initialDebugMode = document.body && document.body.dataset.nexusDebugEnabled === '1';
const initialDebugMode = document.body && document.body.dataset.moduleDebugEnabled === '1';
function getCookie(name) {
const pattern = `; ${document.cookie}`;
const parts = pattern.split(`; ${name}=`);

View File

@@ -44,7 +44,7 @@ final class Router
$this->config = ModuleConfig::load($this->moduleBasePath);
$requestUri = (string) ($_SERVER['REQUEST_URI'] ?? '');
$requestPath = (string) (parse_url($requestUri, PHP_URL_PATH) ?: '');
$debugEnabled = function_exists('nexus_debug_enabled') ? nexus_debug_enabled() : false;
$debugEnabled = function_exists('module_debug_enabled') ? module_debug_enabled('mining-checker') : false;
$latestDebugFilePath = rtrim($this->config->debugDir(), '/') . '/latest-server.json';
$isLatestDebugRequest = str_ends_with($requestPath, '/api/mining-checker/v1/debug/latest')
|| $requestPath === 'api/mining-checker/v1/debug/latest'