ydcfydf
This commit is contained in:
@@ -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}=`);
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user